3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function by_ref_old_way(&$ref) { $ref = 23; } $var = 42; by_ref_old_way($var); var_dump($var);
based on gBY18
Output for 4.3.0 - 7.3.0alpha1
int(23)