3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = new __PHP_Incomplete_Class; $r = new ReflectionProperty($a, x'); $r->setValue(null, 3); //$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
Parse error: syntax error, unexpected string content ");", expecting ")" in /in/HFTUY on line 4
Process exited with code 255.

preferences:
149 ms | 1314 KiB | 6 Q