3v4l.org

run code in 300+ 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 git.master, git.master_jit, rfc.property-hooks
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:
62.64 ms | 405 KiB | 5 Q