3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i < 1; test(),test2()){ echo $i, "\n"; } function test(){ if (rand(1,10) == 1){ global $i; $i = 1; } } function test2(){}

preferences:
35.31 ms | 402 KiB | 5 Q