3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo str_repeat("test\n",20); if(phpversion()[0] == 5){ echo 'blah'; }

preferences:
32.4 ms | 405 KiB | 5 Q