3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $class = new ReflectionClass("SoapClient"); var_dump($class->getMethods());
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught ReflectionException: Class SoapClient does not exist in /in/oqlf9:3 Stack trace: #0 /in/oqlf9(3): ReflectionClass->__construct('SoapClient') #1 {main} thrown in /in/oqlf9 on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
array(13) { [0]=> object(ReflectionMethod)#3 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" } [1]=> object(ReflectionMethod)#4 (2) { ["name"]=> string(6) "__call" ["class"]=> string(10) "SoapClient" } [2]=> object(ReflectionMethod)#5 (2) { ["name"]=> string(10) "__soapcall" ["class"]=> string(10) "SoapClient" } [3]=> object(ReflectionMethod)#6 (2) { ["name"]=> string(16) "__getlastrequest" ["class"]=> string(10) "SoapClient" } [4]=> object(ReflectionMethod)#7 (2) { ["name"]=> string(17) "__getlastresponse" ["class"]=> string(10) "SoapClient" } [5]=> object(ReflectionMethod)#8 (2) { ["name"]=> string(23) "__getlastrequestheaders" ["class"]=> string(10) "SoapClient" } [6]=> object(ReflectionMethod)#9 (2) { ["name"]=> string(24) "__getlastresponseheaders" ["class"]=> string(10) "SoapClient" } [7]=> object(ReflectionMethod)#10 (2) { ["name"]=> string(14) "__getfunctions" ["class"]=> string(10) "SoapClient" } [8]=> object(ReflectionMethod)#11 (2) { ["name"]=> string(10) "__gettypes" ["class"]=> string(10) "SoapClient" } [9]=> object(ReflectionMethod)#12 (2) { ["name"]=> string(11) "__dorequest" ["class"]=> string(10) "SoapClient" } [10]=> object(ReflectionMethod)#13 (2) { ["name"]=> string(11) "__setcookie" ["class"]=> string(10) "SoapClient" } [11]=> object(ReflectionMethod)#14 (2) { ["name"]=> string(13) "__setlocation" ["class"]=> string(10) "SoapClient" } [12]=> object(ReflectionMethod)#15 (2) { ["name"]=> string(16) "__setsoapheaders" ["class"]=> string(10) "SoapClient" } }
Output for 5.4.0 - 5.6.28
Fatal error: Uncaught exception 'ReflectionException' with message 'Class SoapClient does not exist' in /in/oqlf9:3 Stack trace: #0 /in/oqlf9(3): ReflectionClass->__construct('SoapClient') #1 {main} thrown in /in/oqlf9 on line 3
Process exited with code 255.
Output for 5.2.0 - 5.3.29
array(13) { [0]=> &object(ReflectionMethod)#2 (2) { ["name"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" } [1]=> &object(ReflectionMethod)#3 (2) { ["name"]=> string(6) "__call" ["class"]=> string(10) "SoapClient" } [2]=> &object(ReflectionMethod)#4 (2) { ["name"]=> string(10) "__soapCall" ["class"]=> string(10) "SoapClient" } [3]=> &object(ReflectionMethod)#5 (2) { ["name"]=> string(16) "__getLastRequest" ["class"]=> string(10) "SoapClient" } [4]=> &object(ReflectionMethod)#6 (2) { ["name"]=> string(17) "__getLastResponse" ["class"]=> string(10) "SoapClient" } [5]=> &object(ReflectionMethod)#7 (2) { ["name"]=> string(23) "__getLastRequestHeaders" ["class"]=> string(10) "SoapClient" } [6]=> &object(ReflectionMethod)#8 (2) { ["name"]=> string(24) "__getLastResponseHeaders" ["class"]=> string(10) "SoapClient" } [7]=> &object(ReflectionMethod)#9 (2) { ["name"]=> string(14) "__getFunctions" ["class"]=> string(10) "SoapClient" } [8]=> &object(ReflectionMethod)#10 (2) { ["name"]=> string(10) "__getTypes" ["class"]=> string(10) "SoapClient" } [9]=> &object(ReflectionMethod)#11 (2) { ["name"]=> string(11) "__doRequest" ["class"]=> string(10) "SoapClient" } [10]=> &object(ReflectionMethod)#12 (2) { ["name"]=> string(11) "__setCookie" ["class"]=> string(10) "SoapClient" } [11]=> &object(ReflectionMethod)#13 (2) { ["name"]=> string(13) "__setLocation" ["class"]=> string(10) "SoapClient" } [12]=> &object(ReflectionMethod)#14 (2) { ["name"]=> string(16) "__setSoapHeaders" ["class"]=> string(10) "SoapClient" } }
Output for 5.0.5 - 5.1.6
array(13) { [0]=> &object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" } [1]=> &object(ReflectionMethod)#3 (2) { ["name"]=> string(6) "__call" ["class"]=> string(10) "SoapClient" } [2]=> &object(ReflectionMethod)#4 (2) { ["name"]=> string(10) "__soapCall" ["class"]=> string(10) "SoapClient" } [3]=> &object(ReflectionMethod)#5 (2) { ["name"]=> string(16) "__getLastRequest" ["class"]=> string(10) "SoapClient" } [4]=> &object(ReflectionMethod)#6 (2) { ["name"]=> string(17) "__getLastResponse" ["class"]=> string(10) "SoapClient" } [5]=> &object(ReflectionMethod)#7 (2) { ["name"]=> string(23) "__getLastRequestHeaders" ["class"]=> string(10) "SoapClient" } [6]=> &object(ReflectionMethod)#8 (2) { ["name"]=> string(24) "__getLastResponseHeaders" ["class"]=> string(10) "SoapClient" } [7]=> &object(ReflectionMethod)#9 (2) { ["name"]=> string(14) "__getFunctions" ["class"]=> string(10) "SoapClient" } [8]=> &object(ReflectionMethod)#10 (2) { ["name"]=> string(10) "__getTypes" ["class"]=> string(10) "SoapClient" } [9]=> &object(ReflectionMethod)#11 (2) { ["name"]=> string(11) "__doRequest" ["class"]=> string(10) "SoapClient" } [10]=> &object(ReflectionMethod)#12 (2) { ["name"]=> string(11) "__setCookie" ["class"]=> string(10) "SoapClient" } [11]=> &object(ReflectionMethod)#13 (2) { ["name"]=> string(13) "__setLocation" ["class"]=> string(10) "SoapClient" } [12]=> &object(ReflectionMethod)#14 (2) { ["name"]=> string(16) "__setSoapHeaders" ["class"]=> string(10) "SoapClient" } }
Output for 5.0.4
array(12) { [0]=> &object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" } [1]=> &object(ReflectionMethod)#3 (2) { ["name"]=> string(6) "__call" ["class"]=> string(10) "SoapClient" } [2]=> &object(ReflectionMethod)#4 (2) { ["name"]=> string(10) "__soapCall" ["class"]=> string(10) "SoapClient" } [3]=> &object(ReflectionMethod)#5 (2) { ["name"]=> string(16) "__getLastRequest" ["class"]=> string(10) "SoapClient" } [4]=> &object(ReflectionMethod)#6 (2) { ["name"]=> string(17) "__getLastResponse" ["class"]=> string(10) "SoapClient" } [5]=> &object(ReflectionMethod)#7 (2) { ["name"]=> string(23) "__getLastRequestHeaders" ["class"]=> string(10) "SoapClient" } [6]=> &object(ReflectionMethod)#8 (2) { ["name"]=> string(24) "__getLastResponseHeaders" ["class"]=> string(10) "SoapClient" } [7]=> &object(ReflectionMethod)#9 (2) { ["name"]=> string(14) "__getFunctions" ["class"]=> string(10) "SoapClient" } [8]=> &object(ReflectionMethod)#10 (2) { ["name"]=> string(10) "__getTypes" ["class"]=> string(10) "SoapClient" } [9]=> &object(ReflectionMethod)#11 (2) { ["name"]=> string(11) "__doRequest" ["class"]=> string(10) "SoapClient" } [10]=> &object(ReflectionMethod)#12 (2) { ["name"]=> string(11) "__setCookie" ["class"]=> string(10) "SoapClient" } [11]=> &object(ReflectionMethod)#13 (2) { ["name"]=> string(13) "__setLocation" ["class"]=> string(10) "SoapClient" } }
Output for 5.0.2 - 5.0.3
array(10) { [0]=> &object(ReflectionMethod)#2 (2) { ["name"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" } [1]=> &object(ReflectionMethod)#3 (2) { ["name"]=> string(6) "__call" ["class"]=> string(10) "SoapClient" } [2]=> &object(ReflectionMethod)#4 (2) { ["name"]=> string(10) "__soapCall" ["class"]=> string(10) "SoapClient" } [3]=> &object(ReflectionMethod)#5 (2) { ["name"]=> string(16) "__getLastRequest" ["class"]=> string(10) "SoapClient" } [4]=> &object(ReflectionMethod)#6 (2) { ["name"]=> string(17) "__getLastResponse" ["class"]=> string(10) "SoapClient" } [5]=> &object(ReflectionMethod)#7 (2) { ["name"]=> string(23) "__getLastRequestHeaders" ["class"]=> string(10) "SoapClient" } [6]=> &object(ReflectionMethod)#8 (2) { ["name"]=> string(24) "__getLastResponseHeaders" ["class"]=> string(10) "SoapClient" } [7]=> &object(ReflectionMethod)#9 (2) { ["name"]=> string(14) "__getFunctions" ["class"]=> string(10) "SoapClient" } [8]=> &object(ReflectionMethod)#10 (2) { ["name"]=> string(10) "__getTypes" ["class"]=> string(10) "SoapClient" } [9]=> &object(ReflectionMethod)#11 (2) { ["name"]=> string(11) "__doRequest" ["class"]=> string(10) "SoapClient" } }
Output for 5.0.0 - 5.0.1
array(9) { [0]=> &object(ReflectionMethod)#2 (2) { ["name"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" } [1]=> &object(ReflectionMethod)#3 (2) { ["name"]=> string(6) "__call" ["class"]=> string(10) "SoapClient" } [2]=> &object(ReflectionMethod)#4 (2) { ["name"]=> string(16) "__getLastRequest" ["class"]=> string(10) "SoapClient" } [3]=> &object(ReflectionMethod)#5 (2) { ["name"]=> string(17) "__getLastResponse" ["class"]=> string(10) "SoapClient" } [4]=> &object(ReflectionMethod)#6 (2) { ["name"]=> string(23) "__getLastRequestHeaders" ["class"]=> string(10) "SoapClient" } [5]=> &object(ReflectionMethod)#7 (2) { ["name"]=> string(24) "__getLastResponseHeaders" ["class"]=> string(10) "SoapClient" } [6]=> &object(ReflectionMethod)#8 (2) { ["name"]=> string(14) "__getFunctions" ["class"]=> string(10) "SoapClient" } [7]=> &object(ReflectionMethod)#9 (2) { ["name"]=> string(10) "__getTypes" ["class"]=> string(10) "SoapClient" } [8]=> &object(ReflectionMethod)#10 (2) { ["name"]=> string(11) "__doRequest" ["class"]=> string(10) "SoapClient" } }
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/oqlf9 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: reflectionclass in /in/oqlf9 on line 3