3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! $foo = 'bar'. ($foo = "foo $foo"); echo $foo; if(0 == 'true') { echo 'true'; }
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: foo in /in/QMm4b on line 5 barfoo true
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: foo in /in/QMm4b on line 5 barfoo true