3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("foo", "bar"); echo foo; echo "\n"; define("TRUE", false); if (TRUE) { echo "TRUE"; } else { echo "FALSE"; }