3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; // handle = 1 $a->test = false; echo('Property $a->test is: '); var_dump($a->test); $b = unserialize('a:1:{i:0;C:3:"GMP":69:{s:1:"1";a:2:{s:4:"test";b:1;i:0;O:12:"DateInterval":1:{s:1:"y";R:2;}}}}'); echo('Property $a->test changed to: '); var_dump($a->test);
Output for 5.6.12 - 5.6.40, 7.0.10 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Property $a->test is: bool(false) Property $a->test changed to: bool(false)
Output for 7.3.32 - 7.3.33, 7.4.33, 8.0.13
Property $a->test is: bool(false) Warning: Class __PHP_Incomplete_Class has no unserializer in /in/tC4QD on line 6 Property $a->test changed to: bool(false)
Output for 7.0.0 - 7.0.9
Property $a->test is: bool(false)
Process exited with code 139.
Output for 5.6.0 - 5.6.11
Property $a->test is: bool(false) Property $a->test changed to: bool(true)

preferences:
154.32 ms | 409 KiB | 5 Q