3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bg = array('back1.jpg', 'back2.jpg' ); // array of filenames $i = rand(0, count($bg)-1); // generate random number size of the array $selectedBg = "$bg[$i]"; // set variable equal to which random filename was chosen <script> $('body').css('background', selectedBg); </script> ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.10.0100.05320.16
7.0.00.0000.04320.10
5.6.160.0070.08320.61
5.6.150.0000.06318.15
5.6.140.0030.05318.22
5.6.130.0070.04018.29
5.6.120.0130.07721.12
5.6.110.0170.07321.01
5.6.100.0130.07721.04
5.6.90.0000.06020.97
5.6.80.0070.06720.42
5.5.300.0070.04718.02
5.5.290.0170.05018.09
5.5.280.0030.08320.77
5.5.270.0030.08320.77
5.5.260.0070.04720.86
5.5.250.0100.04720.79
5.5.240.0200.06720.26

preferences:
143.78 ms | 1394 KiB | 7 Q