3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! function foo() { return 'foo'; } $foo = 1; var_dump(${foo()});
Output for 4.3.0 - 5.3.22, 5.3.24 - 5.4.34, 5.4.36 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
int(1)
Output for 5.3.23, 5.4.35

Process exited with code 137.