List of PHP Kata to Update - codewars/content-issues GitHub Wiki

PHP 8.0 with PHPUnit 9.5.2 was added. The kata on this page needs to be updated manually. Any help is appreciated!

Summary of Changes

  • Files are no longer concatenated, but it should work very similarly as before because solution and preloaded files are autoloaded
  • The name of the test class now required to end with Test
  • Solution and Preloaded file should have <?php
    • Runner prepends this if missing for backwards compatibility, but any new code should include it
  • Test file should have <?php use PHPUnit\Framework\TestCase;
    • Runner prepends this if <?php is missing for backwards compatibility, but any new code should include it
  • PHPUnit is updated to 9.5.2 so there are some breaking changes

List of Kata

  1. 'Magic' recursion call depth number
  2. Address Book by State
  3. Basic variable assignment
  4. Binary multiple of 3
  5. Brainfuck Translator
  6. Brick pyramid.
  7. Buddy Pairs
  8. Build a Directory
  9. Burrows-Wheeler-Transformation
  10. Buying a car
  11. Car Park Escape
  12. Car Wars
  13. Cartesian neighbors
  14. Catalog
  15. Challenge Fun #14: Target Game
  16. Champernowne's Championship
  17. Check and Mate?
  18. Ciphers #1 - The 01 Cipher
  19. Color Choice
  20. Connect 4
  21. Convert string to camel case
  22. Coordinates Validator
  23. Count up the points for the 7 Wonders board game! Easy version
  24. Counting Duplicates
  25. Creating a custom PHP stream wrapper
  26. Debug the functions EASY
  27. Divide numbers as strings
  28. Domain name validator
  29. Don't rely on luck.
  30. Draw a Circle.
  31. Drawing a cube
  32. Error correction #1 - Hamming Code
  33. Esolang Interpreters #1 - Introduction to Esolangs and My First Interpreter (MiniStringFuck)
  34. Esolang: InfiniTick
  35. Evaluate mathematical expression
  36. Experimenting with a sequence of complex numbers
  37. extract file name
  38. Factorial decomposition
  39. Family Gift Exchange / Names Out of a Hat
  40. Fibo akin
  41. Filter valid romans
  42. Financing Plan on Planet XY140Z-n
  43. Find all pairs
  44. Find the odd int
  45. Find The Parity Outlier
  46. Find the smallest integer in the array
  47. Find twins
  48. Fluent Calculator
  49. Follow that Spy
  50. Functions of Integers on Cartesian Plane
  51. Generate keywords
  52. Get angle between hour and minute hands
  53. Get Password from grid
  54. Get the Middle Character
  55. Going to the cinema
  56. Going to zero or to infinity?
  57. Good words
  58. Guess the list pattern #2
  59. Hero's root
  60. Hofstadter Q
  61. How many dots are covered
  62. How many e-mails we sent today?
  63. How many urinals are free?
  64. How Much?
  65. Human readable duration format
  66. Hungry Hippos
  67. Implement the (Unnormalized) Cardinal Sine
  68. IP Validation
  69. IPv4 Network and Broadcast Addresses
  70. Is my friend cheating?
  71. Is a point inside an random area...
  72. Is there a vowel in there?
  73. Is there an arrow missing ? (Relations - Part1: Reflexivity)
  74. Jaden Casing Strings
  75. Jenny's secret message
  76. John and Ann sign up for Codewars
  77. Largest Palindromic Product
  78. League Player Rank
  79. Linked Lists - Get Nth Node
  80. Linked Lists - Insert Nth Node
  81. List of all Rationals
  82. Looking for a benefactor
  83. MAC Address : Regexp
  84. Make sets
  85. Mirrored Exponential Chunks
  86. Mutual Recursion
  87. Mystery Class
  88. Not very secure
  89. Object-Oriented PHP #1 - Classes, Public Properties and Methods
  90. Object-Oriented PHP #10 - Objects on the Fly [Advanced]
  91. Object-Oriented PHP #6 - Visibility
  92. Object-Oriented PHP #9 - Abstract Classes [Advanced]
  93. One Line Task: Largest Rectangle
  94. Ordered Count of Characters
  95. Over The Road
  96. Pattern Generator
  97. Pattern Generator (mirrored)
  98. People’s Travel Sorter (simplified)
  99. Perimeter of squares in a rectangle
  100. PHP Functions - Anonymous Functions (aka Closures)
  101. PHP Functions - Return Type Declarations
  102. PHP Functions - Type Declarations
  103. PHP Immutable
  104. PHP in Action #5 - PHPMailer Intro
  105. Pigs in a Pen
  106. Playing on a chessboard
  107. Points in the circle
  108. Pokemon Damage Calculator
  109. Pokerhand, straight or not?
  110. Pong! [Basics]
  111. Positions Average
  112. Principal Diagonal | VS | Secondary Diagonal
  113. Product of two squares
  114. Pull your words together, man!
  115. Rectangle into Squares
  116. Reflection in PHP #1 - Introduction
  117. Reflection in PHP #3 - Using Reflection on Classes
  118. Reflection in PHP #4 - Puzzle Challenge [Assessment]
  119. Regular expression for binary numbers divisible by 5
  120. Remove exclamation marks
  121. Removing Elements
  122. Reversed Strings
  123. RoboScript #4 - RS3 Patterns to the Rescue
  124. Roman Numerals Decoder
  125. Round To Nearest
  126. Same Array?
  127. Screen Locking Patterns
  128. Sectional Array Sort
  129. Selective memory
  130. Series of integers from m to n
  131. Shortest Distance to a Character
  132. Simple assembler interpreter
  133. Simple consecutive pairs
  134. Simple Fun #151: Rocks
  135. Simple Fun #87: Shuffled Array
  136. Simplifying multilinear polynomials
  137. Smallest possible sum
  138. Snakes and Ladders
  139. Sort by Last Char
  140. Square Pi's
  141. String Scramble
  142. Substituting Variables Into Strings: Padded Numbers
  143. Sum Arrays
  144. Sum Mixed Array
  145. Sum of Minimums!
  146. Sum of powers of 2
  147. Super Duper Easy
  148. Text align justify
  149. Texting with an old-school mobile phone
  150. The Skiponacci Sequence
  151. The Walker
  152. Tortoise racing
  153. Total amount of points
  154. Uglify Word
  155. URL building
  156. Vigenère Cipher Helper
  157. Wave Sorting
  158. We are Family
  159. Weight for weight
  160. Which x for that sum?
  161. Who likes it?

After changing assertEquals with assertSame to avoid this problem some katas failed the automatic change and require manual editing:

  1. A Rule of Divisibility by 7
  2. Area of an arrow
  3. Binary Genetic Algorithms
  4. Brainfuck Translator
  5. Buying a car
  6. Calculate mean and concatenate string
  7. Closest and Smallest
  8. Convert a String to a Number!
  9. Creating a custom PHP stream wrapper
  10. Disease Spread
  11. Driving School Series #2
  12. Easy Cyclist's Training
  13. Easy Line
  14. Euclidean distance in n dimensions
  15. Fibonacci, Tribonacci and friends
  16. Financing Plan on Planet XY140Z-n
  17. Find the Middle of the Product
  18. Find the area of the rectangle!
  19. FizzBuzz++
  20. Fun with lists: filter
  21. Fun with lists: map
  22. Functions of Integers on Cartesian Plane
  23. Heron's formula
  24. How good are you really?
  25. How many dots are covered
  26. League Player Rank
  27. Looking for a benefactor
  28. MAC Address : Regexp
  29. Molecule to atoms
  30. Mutual Recursion
  31. One Line Task: Largest Rectangle
  32. Ordered Count of Characters
  33. Parse a linked list from a string
  34. Pascal's Triangle
  35. Pattern Generator (mirrored)
  36. Program a Calculator #2 - 3D Vectors
  37. Quarter of the year
  38. Regex Tic Tac Toe Win Checker
  39. Regexp Basics - is it IPv4 address?
  40. Return the closest number multiple of 10
  41. Return the first M multiples of N
  42. Reverse polish notation calculator
  43. Screen Locking Patterns
  44. Send in the Clones
  45. Simple Fun #181: Rounding
  46. Simple Fun #74: Growing Plant
  47. Simple Fun #87: Shuffled Array
  48. Square Pi's
  49. Sum and Length
  50. Sum of Array Averages
  51. Sum of Intervals
  52. Sum of positive
  53. Super Duper Easy
  54. The Walker
  55. Tiny Three-Pass Compiler
  56. Tortoise racing
  57. Wave Sorting
  58. We are Family
  59. simple calculator