3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function vec_add (&$a, $b) { $a['x'] += $b['x']; $a['y'] += $b['y']; $a['z'] += $b['z']; } $a = array (x => 3, y => 2, z => 5); $b = array (x => 9, y => 3, z => -7); vec_add (&$a, $b); print_r ($a); ?>
based on 7IeDH
Output for 5.4.0 - 5.6.13
Fatal error: Call-time pass-by-reference has been removed in /in/0vP4W on line 14
Process exited with code 255.