3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class = new ReflectionClass("SoapClient"); var_dump($class->getMethods());
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
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 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33
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 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.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.2.17, 5.3.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.0 - 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.3.11, 4.4.0 - 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

preferences:
193.49 ms | 401 KiB | 347 Q