3v4l.org

run code in 300+ PHP versions simultaneously
<?php $min = 17; $max = $min + 48; // 48 is to fit the results in my console for ($testseed=$min; $testseed<$max; $testseed++) { mt_srand( $testseed ); $r = rand(); printf( "rand() == 8x + %d\n", $testseed, $r ); } ?>

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.3.120.0110.00414.65
7.3.110.0030.01014.85
7.3.100.0000.01514.57
7.3.90.0070.01114.75
7.3.80.0050.00514.82
7.3.70.0090.00314.71
7.3.60.0030.00614.76
7.3.50.0040.01214.77
7.3.40.0070.01014.89
7.3.30.0060.00614.74
7.3.20.0040.00816.63
7.3.10.0120.00316.51
7.3.00.0030.01016.83
7.2.240.0030.00714.82
7.2.230.0030.01015.21
7.2.220.0040.00815.15
7.2.210.0060.01014.62
7.2.200.0000.00914.98
7.2.190.0000.01414.98
7.2.180.0030.01314.97
7.2.170.0050.00514.80
7.2.160.0000.01114.88
7.2.150.0080.00616.48
7.2.140.0030.01016.87
7.2.130.0090.00616.48
7.2.120.0070.00716.82
7.2.110.0110.00416.88
7.2.100.0030.01316.81
7.2.90.0030.01616.59
7.2.80.0070.01016.84
7.2.70.0070.01116.89
7.2.60.0000.01216.91
7.2.50.0080.00816.80
7.2.40.0090.00616.76
7.2.30.0070.00416.75
7.2.20.0060.01216.74
7.2.10.0030.01216.89
7.2.00.0060.00316.67
7.1.330.0000.01315.65
7.1.320.0070.00715.74
7.1.310.0080.00515.82
7.1.300.0090.00015.77
7.1.290.0030.01015.69
7.1.280.0060.00615.77
7.1.270.0000.01315.61
7.1.260.0040.00715.87
7.1.250.0030.00615.63
7.1.70.0000.00816.88
7.1.60.0090.01519.17
7.1.50.0100.00317.11
7.1.00.0000.07722.51
7.0.200.0030.00316.85
7.0.140.0030.07321.96
7.0.100.0030.08020.00
7.0.90.0030.08719.90
7.0.80.0170.07019.98
7.0.70.0170.06019.98
7.0.60.0370.07719.86
7.0.50.0130.06720.36
7.0.40.0170.06720.04
7.0.30.0130.04020.00
7.0.20.0100.04020.14
7.0.10.0100.07320.07
7.0.00.0070.05320.04
5.6.280.0000.07320.92
5.6.250.0100.07320.72
5.6.240.0130.07320.66
5.6.230.0000.06720.62
5.6.220.0030.08020.73
5.6.210.0030.05020.46
5.6.200.0030.05321.11
5.6.190.0200.07321.06
5.6.180.0170.08021.01
5.6.170.0030.09021.00
5.6.160.0000.04020.95
5.6.150.0100.07721.08
5.6.140.0070.04721.16
5.6.130.0070.04721.10
5.6.120.0100.05721.00
5.6.110.0100.04721.09
5.6.100.0030.09321.04
5.6.90.0230.07320.99
5.6.80.0030.08020.32
5.6.70.0170.07020.42
5.6.60.0000.05020.43
5.6.50.0170.04020.52
5.6.40.0000.05720.40
5.6.30.0030.05320.38
5.6.20.0070.05720.49
5.6.10.0230.06720.45
5.6.00.0130.07020.44
5.5.380.0000.08720.41
5.5.370.0030.05720.41
5.5.360.0030.07720.31
5.5.350.0070.08720.41
5.5.340.0070.04320.82
5.5.330.0100.08020.93
5.5.320.0100.04020.92
5.5.310.0130.08020.79
5.5.300.0070.05020.88
5.5.290.0030.07020.86
5.5.280.0100.07320.61
5.5.270.0070.05320.89
5.5.260.0130.07720.76
5.5.250.0100.08020.72
5.5.240.0230.07320.29
5.5.230.0100.08720.17
5.5.220.0070.06320.29
5.5.210.0030.04320.31
5.5.200.0130.06719.99
5.5.190.0070.05020.08
5.5.180.0070.07320.14
5.5.160.0070.07020.20
5.5.150.0100.04720.10
5.5.140.0130.07320.29
5.5.130.0030.04320.20
5.5.120.0000.07020.22
5.5.110.0100.07019.96
5.5.100.0000.04720.12
5.5.90.0170.07320.16
5.5.80.0030.04720.15
5.5.70.0130.07719.91
5.5.60.0100.04020.03
5.5.50.0030.07019.93
5.5.40.0030.04719.93
5.5.30.0070.05720.05
5.5.20.0070.07719.96
5.5.10.0100.08019.96
5.5.00.0100.04020.12
5.4.450.0070.04019.23
5.4.440.0130.07319.39
5.4.430.0170.03719.45
5.4.420.0000.08719.44
5.4.410.0000.05019.14
5.4.400.0070.07318.81
5.4.390.0070.06719.11
5.4.380.0130.06718.94
5.4.370.0030.04019.23
5.4.360.0030.04019.04
5.4.350.0170.07318.97
5.4.340.0100.06719.23
5.4.320.0030.07319.03
5.4.310.0100.07719.16
5.4.300.0070.04718.96
5.4.290.0170.06318.94
5.4.280.0100.07318.84
5.4.270.0030.04319.03
5.4.260.0070.05718.78
5.4.250.0070.04018.97
5.4.240.0170.03018.97
5.4.230.0170.06719.22
5.4.220.0100.03318.93
5.4.210.0070.07718.80
5.4.200.0070.05319.04
5.4.190.0100.04718.96
5.4.180.0070.07018.93
5.4.170.0070.07719.04
5.4.160.0070.08018.79
5.4.150.0030.05319.01
5.4.140.0070.05316.37
5.4.130.0100.06316.32
5.4.120.0130.04716.36
5.4.110.0100.05716.30
5.4.100.0130.06016.39
5.4.90.0170.06716.20
5.4.80.0130.03316.40
5.4.70.0100.04016.25
5.4.60.0070.06316.31
5.4.50.0130.04316.30
5.4.40.0070.04716.35
5.4.30.0130.05716.20
5.4.20.0070.06316.39
5.4.10.0100.04716.39
5.4.00.0070.07315.81
5.3.290.0070.07714.67
5.3.280.0030.05014.59
5.3.270.0000.08014.54
5.3.260.0070.04314.59
5.3.250.0100.07314.57
5.3.240.0130.07314.59
5.3.230.0070.05314.45
5.3.220.0000.07014.50
5.3.210.0070.08314.52
5.3.200.0030.07714.42
5.3.190.0000.04714.54
5.3.180.0070.06314.42
5.3.170.0100.06714.41
5.3.160.0130.04314.38
5.3.150.0030.05314.54
5.3.140.0070.07014.39
5.3.130.0070.07314.53
5.3.120.0130.07314.52
5.3.110.0100.06314.54
5.3.100.0000.06713.98
5.3.90.0170.06714.02
5.3.80.0000.04713.89
5.3.70.0100.07313.79
5.3.60.0100.06713.83
5.3.50.0030.04013.93
5.3.40.0070.06013.71
5.3.30.0100.05713.84
5.3.20.0030.04713.50
5.3.10.0170.06713.64
5.3.00.0070.08013.61
5.2.170.0100.05311.10
5.2.160.0070.05711.13
5.2.150.0170.03010.93
5.2.140.0130.05011.13
5.2.130.0100.05711.13
5.2.120.0030.06011.11
5.2.110.0070.06311.06
5.2.100.0030.04710.98
5.2.90.0130.04011.14
5.2.80.0030.05711.05
5.2.70.0070.04311.09
5.2.60.0030.03011.03
5.2.50.0070.07010.89
5.2.40.0070.05010.99
5.2.30.0070.05010.97
5.2.20.0070.03010.82
5.2.10.0070.05310.88
5.2.00.0030.03010.77
5.1.60.0000.0409.98
5.1.50.0100.04710.02
5.1.40.0070.0509.96
5.1.30.0030.06010.36
5.1.20.0070.04310.37
5.1.10.0070.0339.91
5.1.00.0030.05010.07
5.0.50.0030.0408.59
5.0.40.0030.0408.25
5.0.30.0130.0578.30
5.0.20.0070.0338.18
5.0.10.0030.0408.12
5.0.00.0000.0378.12
4.4.90.0070.0208.12
4.4.80.0070.0338.12
4.4.70.0070.0308.12
4.4.60.0070.0278.12
4.4.50.0030.0338.12
4.4.40.0000.0538.12
4.4.30.0030.0308.12
4.4.20.0030.0338.12
4.4.10.0070.0338.12
4.4.00.0000.0278.12
4.3.110.0070.0238.12
4.3.100.0030.0178.12
4.3.90.0070.0138.12
4.3.80.0000.0308.12
4.3.70.0100.0208.12
4.3.60.0030.0178.12
4.3.50.0000.0308.12
4.3.40.0000.0438.12
4.3.30.0100.0238.12
4.3.20.0000.0378.12
4.3.10.0000.0238.12
4.3.00.0000.0238.12

preferences:
35.67 ms | 400 KiB | 5 Q