3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mylife=22; function myLife () { global $mylife; } myLife (); echo "I am about to turn $mylife tomorrow"; ?> </body> </html>
Output for 4.3.0 - 7.1.0
I am about to turn 22 tomorrow </body> </html>