3v4l.org

run code in 200+ 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 $a1['test'];
Output for 5.0.0 - 7.2.0
21
Output for 4.3.0 - 4.4.9
11