3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $exception = new SoapFault(); $casted = (array)$exception;
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'SoapFault' not found in /in/2JtKu:2 Stack trace: #0 {main} thrown in /in/2JtKu on line 2
Process exited with code 255.
Output for 5.4.34 - 5.6.28
Fatal error: Class 'SoapFault' not found in /in/2JtKu on line 2
Process exited with code 255.
Output for 5.3.0 - 5.4.32
Warning: SoapFault::SoapFault() expects at least 2 parameters, 0 given in /in/2JtKu on line 2
Output for 5.2.0 - 5.2.17
Warning: SoapFault::SoapFault() expects at least 2 parameters, 0 given in /in/2JtKu on line 2 Fatal error: SoapFault::SoapFault(): Invalid parameters in /in/2JtKu on line 2
Process exited with code 255.
Output for 5.0.4 - 5.1.6
Warning: SoapFault::__construct() expects at least 2 parameters, 0 given in /in/2JtKu on line 2 Fatal error: SoapFault::__construct(): Invalid parameters in /in/2JtKu on line 2
Process exited with code 255.
Output for 5.0.2 - 5.0.3
Warning: SoapFault::__construct() expects at least 2 parameters, 0 given in /in/2JtKu on line 2 Fatal error: SoapFault::__construct(): Invalid arguments in /in/2JtKu on line 2
Process exited with code 255.
Output for 5.0.0 - 5.0.1
Warning: SoapFault::SoapFault() expects at least 2 parameters, 0 given in /in/2JtKu on line 2 Fatal error: SoapFault::SoapFault(): Invalid arguments in /in/2JtKu on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: soapfault in /in/2JtKu on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: soapfault in /in/2JtKu on line 2