3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new __PHP_Incomplete_Class; $a->x = 2; var_dump($a); var_dump(unserialize(serialize($a)));
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Fatal error: Uncaught Error: The script tried to modify a property on an incomplete object. Please ensure that the class definition "unknown" 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/GlDll:4 Stack trace: #0 {main} thrown in /in/GlDll on line 4
Process exited with code 255.

preferences:
44.6 ms | 479 KiB | 5 Q