3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test1 = $test2 = $test3 = $test4 = 0; foreach(range(1 , 100) as $row) { $rand = rand(1,4); ${'test'.$rand}++; } var_dump($test1 , $test2 , $test3 , $test4);

preferences:
27.41 ms | 406 KiB | 5 Q