3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $exception = new SoapFault(23, 'asa'); $casted = (array)$exception;
based on 2JtKu
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'SoapFault' not found in /in/9JZ6I:2 Stack trace: #0 {main} thrown in /in/9JZ6I on line 2
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Invalid fault code
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.34 - 5.6.28
Fatal error: Class 'SoapFault' not found in /in/9JZ6I on line 2
Process exited with code 255.
Output for 5.3.0 - 5.4.32
Warning: SoapFault::SoapFault(): Invalid fault code in /in/9JZ6I on line 2
Output for 5.2.0 - 5.2.17
Fatal error: SoapFault::SoapFault(): Invalid parameters. Invalid fault code. in /in/9JZ6I on line 2
Process exited with code 255.
Output for 5.0.5 - 5.1.6
Fatal error: SoapFault::__construct(): Invalid parameters. Invalid fault code. in /in/9JZ6I on line 2
Process exited with code 255.
Output for 5.0.0 - 5.0.4
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: soapfault in /in/9JZ6I 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/9JZ6I on line 2