3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $o1 = new stdclass(); $o1->test = 1; $o2 = $o1; $o2->test = 2; echo $o1->test; $a1 = array(); $a1['test'] = 1; $a2 = &$a1; $a2['test'] = 2; echo $a2['test'];
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
22
Output for 4.3.0 - 4.4.9
12