3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test_malin = new ReflectionClass('ArrayObject'); var_dump( $test_malin->getMethods());
Output for 7.0.0 - 7.1.0
array(22) { [0]=> object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(11) "ArrayObject" } [1]=> object(ReflectionMethod)#3 (2) { ["name"]=> string(12) "offsetExists" ["class"]=> string(11) "ArrayObject" } [2]=> object(ReflectionMethod)#4 (2) { ["name"]=> string(9) "offsetGet" ["class"]=> string(11) "ArrayObject" } [3]=> object(ReflectionMethod)#5 (2) { ["name"]=> string(9) "offsetSet" ["class"]=> string(11) "ArrayObject" } [4]=> object(ReflectionMethod)#6 (2) { ["name"]=> string(11) "offsetUnset" ["class"]=> string(11) "ArrayObject" } [5]=> object(ReflectionMethod)#7 (2) { ["name"]=> string(6) "append" ["class"]=> string(11) "ArrayObject" } [6]=> object(ReflectionMethod)#8 (2) { ["name"]=> string(12) "getArrayCopy" ["class"]=> string(11) "ArrayObject" } [7]=> object(ReflectionMethod)#9 (2) { ["name"]=> string(5) "count" ["class"]=> string(11) "ArrayObject" } [8]=> object(ReflectionMethod)#10 (2) { ["name"]=> string(8) "getFlags" ["class"]=> string(11) "ArrayObject" } [9]=> object(ReflectionMethod)#11 (2) { ["name"]=> string(8) "setFlags" ["class"]=> string(11) "ArrayObject" } [10]=> object(ReflectionMethod)#12 (2) { ["name"]=> string(5) "asort" ["class"]=> string(11) "ArrayObject" } [11]=> object(ReflectionMethod)#13 (2) { ["name"]=> string(5) "ksort" ["class"]=> string(11) "ArrayObject" } [12]=> object(ReflectionMethod)#14 (2) { ["name"]=> string(6) "uasort" ["class"]=> string(11) "ArrayObject" } [13]=> object(ReflectionMethod)#15 (2) { ["name"]=> string(6) "uksort" ["class"]=> string(11) "ArrayObject" } [14]=> object(ReflectionMethod)#16 (2) { ["name"]=> string(7) "natsort" ["class"]=> string(11) "ArrayObject" } [15]=> object(ReflectionMethod)#17 (2) { ["name"]=> string(11) "natcasesort" ["class"]=> string(11) "ArrayObject" } [16]=> object(ReflectionMethod)#18 (2) { ["name"]=> string(11) "unserialize" ["class"]=> string(11) "ArrayObject" } [17]=> object(ReflectionMethod)#19 (2) { ["name"]=> string(9) "serialize" ["class"]=> string(11) "ArrayObject" } [18]=> object(ReflectionMethod)#20 (2) { ["name"]=> string(11) "getIterator" ["class"]=> string(11) "ArrayObject" } [19]=> object(ReflectionMethod)#21 (2) { ["name"]=> string(13) "exchangeArray" ["class"]=> string(11) "ArrayObject" } [20]=> object(ReflectionMethod)#22 (2) { ["name"]=> string(16) "setIteratorClass" ["class"]=> string(11) "ArrayObject" } [21]=> object(ReflectionMethod)#23 (2) { ["name"]=> string(16) "getIteratorClass" ["class"]=> string(11) "ArrayObject" } }
Output for 5.3.0 - 5.6.28
array(22) { [0]=> &object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(11) "ArrayObject" } [1]=> &object(ReflectionMethod)#3 (2) { ["name"]=> string(12) "offsetExists" ["class"]=> string(11) "ArrayObject" } [2]=> &object(ReflectionMethod)#4 (2) { ["name"]=> string(9) "offsetGet" ["class"]=> string(11) "ArrayObject" } [3]=> &object(ReflectionMethod)#5 (2) { ["name"]=> string(9) "offsetSet" ["class"]=> string(11) "ArrayObject" } [4]=> &object(ReflectionMethod)#6 (2) { ["name"]=> string(11) "offsetUnset" ["class"]=> string(11) "ArrayObject" } [5]=> &object(ReflectionMethod)#7 (2) { ["name"]=> string(6) "append" ["class"]=> string(11) "ArrayObject" } [6]=> &object(ReflectionMethod)#8 (2) { ["name"]=> string(12) "getArrayCopy" ["class"]=> string(11) "ArrayObject" } [7]=> &object(ReflectionMethod)#9 (2) { ["name"]=> string(5) "count" ["class"]=> string(11) "ArrayObject" } [8]=> &object(ReflectionMethod)#10 (2) { ["name"]=> string(8) "getFlags" ["class"]=> string(11) "ArrayObject" } [9]=> &object(ReflectionMethod)#11 (2) { ["name"]=> string(8) "setFlags" ["class"]=> string(11) "ArrayObject" } [10]=> &object(ReflectionMethod)#12 (2) { ["name"]=> string(5) "asort" ["class"]=> string(11) "ArrayObject" } [11]=> &object(ReflectionMethod)#13 (2) { ["name"]=> string(5) "ksort" ["class"]=> string(11) "ArrayObject" } [12]=> &object(ReflectionMethod)#14 (2) { ["name"]=> string(6) "uasort" ["class"]=> string(11) "ArrayObject" } [13]=> &object(ReflectionMethod)#15 (2) { ["name"]=> string(6) "uksort" ["class"]=> string(11) "ArrayObject" } [14]=> &object(ReflectionMethod)#16 (2) { ["name"]=> string(7) "natsort" ["class"]=> string(11) "ArrayObject" } [15]=> &object(ReflectionMethod)#17 (2) { ["name"]=> string(11) "natcasesort" ["class"]=> string(11) "ArrayObject" } [16]=> &object(ReflectionMethod)#18 (2) { ["name"]=> string(11) "unserialize" ["class"]=> string(11) "ArrayObject" } [17]=> &object(ReflectionMethod)#19 (2) { ["name"]=> string(9) "serialize" ["class"]=> string(11) "ArrayObject" } [18]=> &object(ReflectionMethod)#20 (2) { ["name"]=> string(11) "getIterator" ["class"]=> string(11) "ArrayObject" } [19]=> &object(ReflectionMethod)#21 (2) { ["name"]=> string(13) "exchangeArray" ["class"]=> string(11) "ArrayObject" } [20]=> &object(ReflectionMethod)#22 (2) { ["name"]=> string(16) "setIteratorClass" ["class"]=> string(11) "ArrayObject" } [21]=> &object(ReflectionMethod)#23 (2) { ["name"]=> string(16) "getIteratorClass" ["class"]=> string(11) "ArrayObject" } }
Output for 5.2.0 - 5.2.17
array(20) { [0]=> &object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(11) "ArrayObject" } [1]=> &object(ReflectionMethod)#3 (2) { ["name"]=> string(12) "offsetExists" ["class"]=> string(11) "ArrayObject" } [2]=> &object(ReflectionMethod)#4 (2) { ["name"]=> string(9) "offsetGet" ["class"]=> string(11) "ArrayObject" } [3]=> &object(ReflectionMethod)#5 (2) { ["name"]=> string(9) "offsetSet" ["class"]=> string(11) "ArrayObject" } [4]=> &object(ReflectionMethod)#6 (2) { ["name"]=> string(11) "offsetUnset" ["class"]=> string(11) "ArrayObject" } [5]=> &object(ReflectionMethod)#7 (2) { ["name"]=> string(6) "append" ["class"]=> string(11) "ArrayObject" } [6]=> &object(ReflectionMethod)#8 (2) { ["name"]=> string(12) "getArrayCopy" ["class"]=> string(11) "ArrayObject" } [7]=> &object(ReflectionMethod)#9 (2) { ["name"]=> string(5) "count" ["class"]=> string(11) "ArrayObject" } [8]=> &object(ReflectionMethod)#10 (2) { ["name"]=> string(8) "getFlags" ["class"]=> string(11) "ArrayObject" } [9]=> &object(ReflectionMethod)#11 (2) { ["name"]=> string(8) "setFlags" ["class"]=> string(11) "ArrayObject" } [10]=> &object(ReflectionMethod)#12 (2) { ["name"]=> string(5) "asort" ["class"]=> string(11) "ArrayObject" } [11]=> &object(ReflectionMethod)#13 (2) { ["name"]=> string(5) "ksort" ["class"]=> string(11) "ArrayObject" } [12]=> &object(ReflectionMethod)#14 (2) { ["name"]=> string(6) "uasort" ["class"]=> string(11) "ArrayObject" } [13]=> &object(ReflectionMethod)#15 (2) { ["name"]=> string(6) "uksort" ["class"]=> string(11) "ArrayObject" } [14]=> &object(ReflectionMethod)#16 (2) { ["name"]=> string(7) "natsort" ["class"]=> string(11) "ArrayObject" } [15]=> &object(ReflectionMethod)#17 (2) { ["name"]=> string(11) "natcasesort" ["class"]=> string(11) "ArrayObject" } [16]=> &object(ReflectionMethod)#18 (2) { ["name"]=> string(11) "getIterator" ["class"]=> string(11) "ArrayObject" } [17]=> &object(ReflectionMethod)#19 (2) { ["name"]=> string(13) "exchangeArray" ["class"]=> string(11) "ArrayObject" } [18]=> &object(ReflectionMethod)#20 (2) { ["name"]=> string(16) "setIteratorClass" ["class"]=> string(11) "ArrayObject" } [19]=> &object(ReflectionMethod)#21 (2) { ["name"]=> string(16) "getIteratorClass" ["class"]=> string(11) "ArrayObject" } }
Output for 5.1.0 - 5.1.6
array(14) { [0]=> &object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(11) "ArrayObject" } [1]=> &object(ReflectionMethod)#3 (2) { ["name"]=> string(12) "offsetExists" ["class"]=> string(11) "ArrayObject" } [2]=> &object(ReflectionMethod)#4 (2) { ["name"]=> string(9) "offsetGet" ["class"]=> string(11) "ArrayObject" } [3]=> &object(ReflectionMethod)#5 (2) { ["name"]=> string(9) "offsetSet" ["class"]=> string(11) "ArrayObject" } [4]=> &object(ReflectionMethod)#6 (2) { ["name"]=> string(11) "offsetUnset" ["class"]=> string(11) "ArrayObject" } [5]=> &object(ReflectionMethod)#7 (2) { ["name"]=> string(6) "append" ["class"]=> string(11) "ArrayObject" } [6]=> &object(ReflectionMethod)#8 (2) { ["name"]=> string(12) "getArrayCopy" ["class"]=> string(11) "ArrayObject" } [7]=> &object(ReflectionMethod)#9 (2) { ["name"]=> string(5) "count" ["class"]=> string(11) "ArrayObject" } [8]=> &object(ReflectionMethod)#10 (2) { ["name"]=> string(8) "getFlags" ["class"]=> string(11) "ArrayObject" } [9]=> &object(ReflectionMethod)#11 (2) { ["name"]=> string(8) "setFlags" ["class"]=> string(11) "ArrayObject" } [10]=> &object(ReflectionMethod)#12 (2) { ["name"]=> string(11) "getIterator" ["class"]=> string(11) "ArrayObject" } [11]=> &object(ReflectionMethod)#13 (2) { ["name"]=> string(13) "exchangeArray" ["class"]=> string(11) "ArrayObject" } [12]=> &object(ReflectionMethod)#14 (2) { ["name"]=> string(16) "setIteratorClass" ["class"]=> string(11) "ArrayObject" } [13]=> &object(ReflectionMethod)#15 (2) { ["name"]=> string(16) "getIteratorClass" ["class"]=> string(11) "ArrayObject" } }
Output for 5.0.0 - 5.0.5
array(9) { [0]=> &object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(11) "ArrayObject" } [1]=> &object(ReflectionMethod)#3 (2) { ["name"]=> string(12) "offsetExists" ["class"]=> string(11) "ArrayObject" } [2]=> &object(ReflectionMethod)#4 (2) { ["name"]=> string(9) "offsetGet" ["class"]=> string(11) "ArrayObject" } [3]=> &object(ReflectionMethod)#5 (2) { ["name"]=> string(9) "offsetSet" ["class"]=> string(11) "ArrayObject" } [4]=> &object(ReflectionMethod)#6 (2) { ["name"]=> string(11) "offsetUnset" ["class"]=> string(11) "ArrayObject" } [5]=> &object(ReflectionMethod)#7 (2) { ["name"]=> string(6) "append" ["class"]=> string(11) "ArrayObject" } [6]=> &object(ReflectionMethod)#8 (2) { ["name"]=> string(12) "getArrayCopy" ["class"]=> string(11) "ArrayObject" } [7]=> &object(ReflectionMethod)#9 (2) { ["name"]=> string(5) "count" ["class"]=> string(11) "ArrayObject" } [8]=> &object(ReflectionMethod)#10 (2) { ["name"]=> string(11) "getIterator" ["class"]=> string(11) "ArrayObject" } }
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/WvNnU on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/WvNnU on line 2