Kata Library: PHP Practice
Sign Up
Time to claim your honor
Training
Practice
Complete challenging
Kata
to earn honor and ranks. Re-train to hone technique
Freestyle Sparring
Take turns remixing and refactoring others code through
Kumite
Community
Leaderboards
Achieve honor and move up the global leaderboards
Chat
Join our
Discord
server and chat with your fellow code warriors
Discussions
View our
Github Discussions
board to discuss general Codewars topics
About
Docs
Learn about all of the different aspects of Codewars
Blog
Read the latest news from Codewars and the community
Log In
Sign Up
Library
Collections
Newest
Oldest
Popularity
Positive Feedback
Most Completed
Least Completed
Hardest
Easiest
Name
Relevance
Low Satisfaction
All
My Languages
Agda (Beta)
BF (Beta)
C
CFML (Beta)
Clojure
COBOL (Beta)
CoffeeScript
CommonLisp (Beta)
Coq
C++
Crystal
C#
D (Beta)
Dart
Elixir
Elm (Beta)
Erlang (Beta)
Factor (Beta)
Forth (Beta)
Fortran (Beta)
F#
Go
Groovy
Haskell
Haxe (Beta)
Idris (Beta)
Java
JavaScript
Julia (Beta)
Kotlin
λ Calculus (Beta)
Lean
Lua
NASM
Nim (Beta)
Objective-C (Beta)
OCaml (Beta)
Pascal (Beta)
Perl (Beta)
PHP
PowerShell (Beta)
Prolog (Beta)
PureScript (Beta)
Python
R (Beta)
Racket
Raku (Beta)
Reason (Beta)
RISC-V (Beta)
Ruby
Rust
Scala
Shell
Solidity (Beta)
SQL
Swift
TypeScript
VB (Beta)
Approved & Beta
Approved
Beta
All
Kata I have not trained on
Kata I have not completed
Kata I have completed
8 kyu
easiest
7 kyu
6 kyu
5 kyu
4 kyu
3 kyu
2 kyu
1 kyu
hardest
Algorithms
10
Arrays
16
Combinatorics
1
Data Structures
3
Functional Programming
6
Fundamentals
25
Iterators
1
Linked Lists
1
Lists
36
Mathematics
4
Number Theory
2
Puzzles
1
Refactoring
1
Restricted
1
Statistics
1
Strings
2
FEATURED TAGS
Cryptography
Data Science
Debugging
Games
Tutorials
36 Kata Found
8 kyu
Count of positives / sum of negatives
160,988
Dentzil
10 Issues Reported
Fundamentals
Arrays
Lists
8 kyu
Removing Elements
81,833
MorgzC41
1 Issue Reported
Lists
Arrays
Fundamentals
8 kyu
Count the Monkeys!
72,702
PG1
1 Issue Reported
Arrays
Fundamentals
Lists
Algorithms
6 kyu
Fibonacci, Tribonacci and friends
13,768
GiacomoSorbi
13 Issues Reported
Arrays
Lists
Number Theory
Fundamentals
6 kyu
Reducing by steps
4,505
g964
3 Issues Reported
Mathematics
Arrays
Functional Programming
Lists
Data Structures
7 kyu
Parts of a list
17,856
g964
1 Issue Reported
Arrays
Lists
Data Structures
Algorithms
7 kyu
Pokerhand, straight or not?
597
gundii
2 Issues Reported
Algorithms
Lists
5 kyu
Josephus Survivor
16,791
GiacomoSorbi
1 Issue Reported
Mathematics
Combinatorics
Algorithms
Lists
Arrays
6 kyu
Tribonacci Sequence
160,599
GiacomoSorbi
7 Issues Reported
Number Theory
Arrays
Lists
Fundamentals
6 kyu
Socialist distribution
584
GiacomoSorbi
Arrays
Lists
Statistics
Algorithms
6 kyu
Fun with lists: map
1,697
janitormeir
Lists
Functional Programming
Fundamentals
4 kyu
Burrows-Wheeler-Transformation
2,043
muesli4
Lists
Puzzles
Algorithms
7 kyu
Baby shark lyrics generator
2,682
albertogcmr
2 Issues Reported
Strings
Lists
Fundamentals
Restricted
7 kyu
Computer problem series #1: Fill the Hard Disk Drive
7,518
albertogcmr
1 Issue Reported
Lists
Arrays
Fundamentals
8 kyu
Duck Duck Goose
14,558
10XL
2 Issues Reported
Arrays
Lists
Fundamentals
8 kyu
Lario and Muigi Pipe Problem
43,481
LiamSorta
Lists
Fundamentals
8 kyu
My head is at the wrong end!
49,342
PG1
1 Issue Reported
Arrays
Lists
Algorithms
8 kyu
Reverse List Order
56,305
cmgerber
Lists
Fundamentals
6 kyu
Which are in?
82,445
g964
7 Issues Reported
Arrays
Lists
Strings
Refactoring
7 kyu
Sum of odd numbers
172,155
hhelwich
Arrays
Lists
Mathematics
Fundamentals
8 kyu
Invert values
177,598
user7657844
1 Issue Reported
Lists
Fundamentals
Arrays
8 kyu
Square(n) Sum
302,776
jhoffner
1 Issue Reported
Arrays
Lists
Fundamentals
7 kyu
Thinkful - List and Loop Drills: Inverse Slicer
4,452
Grae-Drake
Fundamentals
Lists
7 kyu
List of all Rationals
511
Paul Robertson
Mathematics
Lists
Fundamentals
6 kyu
Page replacement algorithms: LRU
395
yLaWy
Algorithms
Lists
6 kyu
Page replacement algorithms: clock
220
yLaWy
Algorithms
Lists
7 kyu
Page replacement algorithms: FIFO
1,038
yLaWy
Algorithms
Lists
6 kyu
Faro Shuffle Count
1,069
DZGoldman
Lists
Iterators
Fundamentals
7 kyu
Fun with lists: indexOf
2,014
janitormeir
Lists
Fundamentals
7 kyu
Fun with lists: anyMatch + allMatch
1,140
janitormeir
1 Issue Reported
Lists
Functional Programming
Fundamentals
Loading...
Confirm
Collect:
undefined
Loading collection data...