3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array ("one", "two"); $arr2 = array ("red", "blue", "white", "green", "pink"); $arr3 = array ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"); for ($i = 0; $i < count($arr3); $i++) { echo $arr1[rand (0, (count($arr1) - 1))].' - '.$arr2[rand (0, (count($arr2) - 1))].' - '.$arr3[$i]."\n"; }

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.2.00.0060.00619.39
7.1.70.0070.00016.87
7.1.60.0140.01019.90
7.1.50.0060.00617.03
7.1.00.0030.07722.46
7.0.200.0450.00614.49
7.0.70.0530.05019.89
7.0.60.0870.05319.86
7.0.50.0730.06020.20
7.0.40.0530.06020.26
7.0.30.0500.06720.29
7.0.20.0470.06020.33
7.0.10.0400.06020.24
7.0.00.0530.05320.20
5.6.280.0100.06321.11
5.6.220.0730.07020.53
5.6.210.0500.06020.68
5.6.200.0570.05721.07
5.6.190.0400.05721.08
5.6.180.0230.05320.99
5.6.170.0670.07321.11
5.6.160.0430.05321.10
5.6.150.0530.06720.99
5.6.140.0530.05021.02
5.6.130.0500.05721.00
5.6.120.0230.06021.07
5.6.110.0230.06021.09
5.6.100.0170.06721.17
5.6.90.0270.05020.99
5.6.80.0170.06020.54
5.6.70.0270.05020.54
5.6.60.0230.05320.53
5.6.50.0300.07720.38
5.6.40.0230.08320.35
5.6.30.0400.04720.49
5.6.20.0470.05320.50
5.6.10.0530.04320.32
5.6.00.0730.05720.53
5.5.360.0530.05320.32
5.5.350.0630.06320.34
5.5.340.0570.06020.93
5.5.330.0530.07020.94
5.5.320.0400.05720.96
5.5.310.0330.06320.92
5.5.300.0530.05720.93
5.5.290.0400.07020.96
5.5.280.0200.06320.77
5.5.270.0230.05720.94
5.5.260.0270.06020.94
5.5.250.0270.05320.71
5.5.240.0330.04720.34
5.5.230.0500.05320.27
5.5.220.0470.06020.14
5.5.210.0200.07320.35
5.5.200.0230.07320.29
5.5.190.0170.05320.21
5.5.180.0570.05720.17
5.5.160.0500.05020.21
5.5.150.0500.04020.20
5.5.140.0500.04320.14
5.5.130.0600.04720.12
5.5.120.0430.05320.29
5.5.110.0470.05020.04
5.5.100.0670.05320.13
5.5.90.0130.05320.21
5.5.80.0370.05720.22
5.5.70.0170.05020.15
5.5.60.0330.05320.20
5.5.50.0430.04720.17
5.5.40.0500.04320.21
5.5.30.0600.06020.11
5.5.20.0300.06320.16
5.5.10.0600.05320.04
5.5.00.0200.05320.03

preferences:
26.92 ms | 401 KiB | 5 Q