3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $message = "hello world"; function greeting(){ global $message; echo $message; } function otherGreeting(){ echo $message; } greeting(); otherGreeting();
based on OrvIX
Output for 5.0.4 - 7.2.0
hello world Notice: Undefined variable: message in /in/8OFW9 on line 9
Output for 4.3.0 - 5.0.3
hello world Notice: Undefined variable: message in /in/8OFW9 on line 9