3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ( (string)$pr == "L" ) { print "local"; } else { print "serve"; }
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: pr in /in/OvJFu on line 2 serve
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: pr in /in/OvJFu on line 2 serve