3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = "PostgreSQL"; $y = "MySQL"; $z = &$x; $x = 'PHP 5'; $y = &$x; echo $x, $y, $z; echo $GLOBALS['x'], $GLOBALS['y'], $GLOBALS['z'];
Output for 4.3.0 - 7.1.0
PHP 5PHP 5PHP 5PHP 5PHP 5PHP 5