3v4l.org

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

preferences:
44.48 ms | 406 KiB | 5 Q