3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.0.28, 8.1.23 - 8.1.32, 8.2.10 - 8.2.28, 8.3.0 - 8.3.19, 8.4.1 - 8.4.5
array(5) { ["Stringable"]=> object(ReflectionClass)#2 (1) { ["name"]=> string(10) "Stringable" } ["Countable"]=> object(ReflectionClass)#3 (1) { ["name"]=> string(9) "Countable" } ["RecursiveIterator"]=> object(ReflectionClass)#4 (1) { ["name"]=> string(17) "RecursiveIterator" } ["Traversable"]=> object(ReflectionClass)#5 (1) { ["name"]=> string(11) "Traversable" } ["Iterator"]=> object(ReflectionClass)#6 (1) { ["name"]=> string(8) "Iterator" } }
Output for 7.4.33
array(2) { ["Traversable"]=> object(ReflectionClass)#2 (1) { ["name"]=> string(11) "Traversable" } ["Countable"]=> object(ReflectionClass)#3 (1) { ["name"]=> string(9) "Countable" } }

preferences:
74.25 ms | 412 KiB | 5 Q