3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php global $message; $message = "hello world"; function greeting(){ global $message; echo $message; } function otherGreeting(){ global $message; echo $message; } greeting(); otherGreeting();
based on i5WCk
Output for 4.3.0 - 7.2.0
hello worldhello world