3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( (new ReflectionClass(RuntimeException::class))->getMethods() );
Output for git.master, git.master_jit, rfc.property-hooks
array(10) { [0]=> object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(9) "Exception" } [1]=> object(ReflectionMethod)#3 (2) { ["name"]=> string(8) "__wakeup" ["class"]=> string(9) "Exception" } [2]=> object(ReflectionMethod)#4 (2) { ["name"]=> string(10) "getMessage" ["class"]=> string(9) "Exception" } [3]=> object(ReflectionMethod)#5 (2) { ["name"]=> string(7) "getCode" ["class"]=> string(9) "Exception" } [4]=> object(ReflectionMethod)#6 (2) { ["name"]=> string(7) "getFile" ["class"]=> string(9) "Exception" } [5]=> object(ReflectionMethod)#7 (2) { ["name"]=> string(7) "getLine" ["class"]=> string(9) "Exception" } [6]=> object(ReflectionMethod)#8 (2) { ["name"]=> string(8) "getTrace" ["class"]=> string(9) "Exception" } [7]=> object(ReflectionMethod)#9 (2) { ["name"]=> string(11) "getPrevious" ["class"]=> string(9) "Exception" } [8]=> object(ReflectionMethod)#10 (2) { ["name"]=> string(16) "getTraceAsString" ["class"]=> string(9) "Exception" } [9]=> object(ReflectionMethod)#11 (2) { ["name"]=> string(10) "__toString" ["class"]=> string(9) "Exception" } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
19.99 ms | 404 KiB | 8 Q