3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0; $attackCount = 1000000; for($i = 0; $i < $attackCount; $i++) { $a1 = arsort([rand(1,6), rand(1,6), rand(1,6)]); $b1 = arsort([rand(1,6), rand(1,6)]); $a += $a1[0] > $b1[0]; $a += $a1[1] > $b1[1]; } var_dump($a / $attackCount);
based on D2EQs
Output for 5.6.38 - 7.3.0rc3
Fatal error: Only variables can be passed by reference in /in/02Vra on line 6
Process exited with code 255.