3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test() { return "ok"; } echo "test1 = ", test(), ", test2 = ", test(); echo "test3 = ", var_export(is_null(null)), ", test4 = ", test();
based on FNskr
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
test1 = ok, test2 = oktest3 = true, test4 = ok
Output for hhvm-3.10.0 - 3.12.0
test1 = ok, test2 = oktest3 = true1, test4 = ok