3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(E_ERROR); class MyClass { function __toString() { debug_print_backtrace(); die("[!] __toString triggered!"); } } var_dump(unserialize('O:8:"DateTime":1:{s:4:"date";O:7:"MyClass":0:{}}'));
Output for rfc.property-hooks, git.master_jit, git.master
Fatal error: Uncaught Error: Invalid serialization data for DateTime object in /in/JNSmm:14 Stack trace: #0 [internal function]: DateTime->__unserialize(Array) #1 /in/JNSmm(14): unserialize('O:8:"DateTime":...') #2 {main} thrown in /in/JNSmm on line 14
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.47 ms | 2785 KiB | 4 Q