3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); echo "<pre>"; $obj = new stdClass; $prop = "crash-me"; $arr = array(); $obj->$prop = "no crash"; $obj->$prop = $arr; // bp here and $obj->$prop is correct print_r($obj); // bp here, inspect $obj->$prop and... xdebug/php will crash. ?>
Output for 4.3.0 - 7.1.0
<pre>stdClass Object ( [crash-me] => Array ( ) )