3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function add_some_extra(&$string) { $string .= 'and something extra.'; } $str = 'This is a string, '; add_some_extra($str); echo $str; // outputs 'This is a string, and something extra.' ?>
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
This is a string, and something extra.
Output for hhvm-3.10.0

Process exited with code 137.