3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = (object) array('a' => 1); $bar = $foo; $bar->a = 2; echo $foo->a;
Output for 5.0.0 - 7.1.0
2
Output for 4.3.0 - 4.4.9
1