3v4l.org

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

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:
52.2 ms | 404 KiB | 8 Q