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 = mt_rand(); printf("mt_srand( 0x%08x ): mt_rand() == %d\n", $testseed, $r, $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.4.10.0000.02015.04
7.4.00.0120.00315.06
7.3.130.0060.01214.95
7.3.120.0150.00414.89
7.3.110.0060.00915.11
7.3.100.0120.00415.10
7.3.90.0070.00714.68
7.3.80.0110.00015.18
7.3.70.0090.00614.65
7.3.60.0060.00614.70
7.3.50.0080.00614.45
7.3.40.0030.00914.95
7.3.30.0000.01714.95
7.3.20.0060.00616.64
7.3.10.0080.00416.91
7.3.00.0020.01116.42
7.2.260.0030.01714.84
7.2.250.0090.00915.07
7.2.240.0070.00714.94
7.2.230.0040.01415.21
7.2.220.0030.01215.14
7.2.210.0070.00714.97
7.2.200.0110.00615.01
7.2.190.0090.00614.88
7.2.180.0030.01014.75
7.2.170.0070.01014.79
7.2.160.0050.00515.07
7.2.150.0070.00717.03
7.2.140.0060.00617.08
7.2.130.0050.01016.73
7.2.120.0070.01016.83
7.2.110.0080.00816.86
7.2.100.0050.00816.88
7.2.90.0090.00516.97
7.2.80.0030.01216.88
7.2.70.0050.00816.79
7.2.60.0060.01116.85
7.2.50.0050.01116.96
7.2.40.0090.00416.74
7.2.30.0100.00316.86
7.2.20.0020.00716.74
7.2.10.0050.00916.68
7.2.00.0050.00817.84
7.1.330.0070.00715.95
7.1.320.0080.00615.88
7.1.310.0070.00415.79
7.1.300.0070.00715.81
7.1.290.0060.00615.78
7.1.280.0060.00615.66
7.1.270.0040.00715.64
7.1.260.0000.00815.78
7.1.250.0030.01015.54
7.1.240.0030.00615.77
7.1.230.0040.01115.67
7.1.220.0090.00515.78
7.1.210.0050.01115.78
7.1.200.0060.00415.75
7.1.190.0030.00815.71
7.1.180.0070.00715.79
7.1.170.0060.00615.88
7.1.160.0060.00815.86
7.1.150.0050.00515.69
7.1.140.0050.00615.82
7.1.130.0050.00715.83
7.1.120.0120.00415.83
7.1.110.0030.01115.60
7.1.100.0040.00815.80
7.1.90.0060.01015.75
7.1.80.0080.00715.70
7.1.70.0060.00416.25
7.1.60.0100.00716.96
7.1.50.0090.00716.17
7.1.40.0080.00515.81
7.1.30.0050.00815.78
7.1.20.0110.00515.66
7.1.10.0110.00515.85
7.1.00.0020.01717.94
7.0.330.0090.00715.31
7.0.320.0050.00615.25
7.0.310.0080.00515.31
7.0.300.0030.00815.43
7.0.290.0020.01015.34
7.0.280.0000.00915.33
7.0.270.0040.00815.37
7.0.260.0060.00815.31
7.0.250.0090.00715.40
7.0.240.0020.01015.48
7.0.230.0090.00615.43
7.0.220.0030.00815.53
7.0.210.0040.00815.14
7.0.200.0070.00515.76
7.0.190.0100.00215.32
7.0.180.0070.00715.42
7.0.170.0040.00715.43
7.0.160.0090.00315.26
7.0.150.0070.00815.27
7.0.140.0020.02917.62
7.0.130.0040.01015.41
7.0.120.0070.00715.40
7.0.110.0070.00715.19
7.0.100.0100.03316.81
7.0.90.0080.03216.89
7.0.80.0100.02817.00
7.0.70.0080.03116.70
7.0.60.0100.02716.79
7.0.50.0130.02517.03
7.0.40.0050.03515.69
7.0.30.0060.03315.64
7.0.20.0120.02515.60
7.0.10.0080.02515.75
7.0.00.0070.03115.53
5.6.400.0040.00714.17
5.6.390.0000.01414.03
5.6.380.0070.00514.17
5.6.370.0000.00914.39
5.6.360.0030.00814.20
5.6.350.0050.00814.37
5.6.340.0070.00713.90
5.6.330.0050.00514.32
5.6.320.0070.01114.26
5.6.310.0090.00914.15
5.6.300.0110.00714.30
5.6.290.0060.01214.21
5.6.280.0100.02616.57
5.6.270.0140.00314.36
5.6.260.0110.00814.41
5.6.250.0110.02816.43
5.6.240.0100.02716.46
5.6.230.0040.03616.38
5.6.220.0120.02816.38
5.6.210.0080.03016.16
5.6.200.0020.02116.43
5.6.190.0100.03016.48
5.6.180.0050.03016.40
5.6.170.0060.03116.31
5.6.160.0070.01916.46
5.6.150.0060.02816.45
5.6.140.0060.03516.42
5.6.130.0090.02816.65
5.6.120.0080.03116.50
5.6.110.0070.02016.44
5.6.100.0090.02916.43
5.6.90.0090.03516.53
5.6.80.0070.03216.27
5.6.70.0070.03216.33
5.6.60.0050.03916.15
5.6.50.0090.03116.28
5.6.40.0040.02916.31
5.6.30.0080.02816.28
5.6.20.0130.02316.25
5.6.10.0080.03016.27
5.6.00.0090.03016.16
5.5.380.0090.02815.09
5.5.370.0030.03215.07
5.5.360.0060.02515.20
5.5.350.0060.02815.18
5.5.340.0070.03315.39
5.5.330.0030.02415.34
5.5.320.0110.02815.42
5.5.310.0030.03315.34
5.5.300.0080.02915.29
5.5.290.0030.02715.39
5.5.280.0080.03415.35
5.5.270.0090.02615.38
5.5.260.0020.02515.48
5.5.250.0060.03315.13
5.5.240.0060.02114.95
5.5.230.0040.03415.00
5.5.220.0040.02715.05
5.5.210.0080.03215.04
5.5.200.0050.03215.07
5.5.190.0040.03415.12
5.5.180.0050.03015.01
5.5.170.0020.00812.67
5.5.160.0080.01715.06
5.5.150.0070.02515.03
5.5.140.0060.02715.04
5.5.130.0060.02915.03
5.5.120.0120.02515.12
5.5.110.0070.03315.11
5.5.100.0070.03115.08
5.5.90.0080.02315.09
5.5.80.0070.03214.97
5.5.70.0110.02214.96
5.5.60.0090.02515.02
5.5.50.0060.03015.03
5.5.40.0060.03115.07
5.5.30.0070.03115.00
5.5.20.0090.03115.08
5.5.10.0100.02514.94
5.5.00.0080.02914.69
5.4.450.0060.03414.50
5.4.440.0080.01914.60
5.4.430.0060.03214.66
5.4.420.0050.01914.59
5.4.410.0060.02414.58
5.4.400.0050.01714.43
5.4.390.0080.02614.45
5.4.380.0090.02714.34
5.4.370.0010.03014.42
5.4.360.0040.02114.47
5.4.350.0070.03014.42
5.4.340.0070.02414.39
5.4.330.0040.00612.15
5.4.320.0040.03414.45
5.4.310.0060.02314.36
5.4.300.0060.02714.38
5.4.290.0080.02914.48
5.4.280.0020.03514.38
5.4.270.0070.02914.29
5.4.260.0070.02914.32
5.4.250.0040.02914.32
5.4.240.0060.01914.39
5.4.230.0070.02514.25
5.4.220.0040.02714.31
5.4.210.0080.02614.35
5.4.200.0030.03114.45
5.4.190.0020.03114.39
5.4.180.0050.02214.44
5.4.170.0040.03114.33
5.4.160.0050.01914.29
5.4.150.0030.03114.40
5.4.140.0040.03213.44
5.4.130.0110.02113.56
5.4.120.0030.02713.53
5.4.110.0040.03313.53
5.4.100.0050.02813.57
5.4.90.0020.03313.59
5.4.80.0030.02313.63
5.4.70.0030.03013.50
5.4.60.0060.02313.62
5.4.50.0030.02613.51
5.4.40.0040.02313.65
5.4.30.0040.03113.49
5.4.20.0070.01513.49
5.4.10.0050.02713.57
5.4.00.0060.02413.30
5.3.290.0040.02712.92
5.3.280.0060.03012.74
5.3.270.0070.03212.83
5.3.260.0030.03012.82
5.3.250.0050.02912.81
5.3.240.0070.02712.76
5.3.230.0020.02512.81
5.3.220.0040.02012.78
5.3.210.0050.01812.73
5.3.200.0070.02112.78
5.3.190.0030.03012.76
5.3.180.0030.01812.81
5.3.170.0060.02912.76
5.3.160.0090.02512.84
5.3.150.0070.02512.83
5.3.140.0050.02912.80
5.3.130.0050.03112.78
5.3.120.0070.02412.80
5.3.110.0030.03312.75
5.3.100.0020.02612.60
5.3.90.0050.02712.66
5.3.80.0030.03212.59
5.3.70.0050.02812.54
5.3.60.0070.01512.59
5.3.50.0080.02412.53
5.3.40.0030.03112.60
5.3.30.0040.02512.52
5.3.20.0030.02912.48
5.3.10.0080.01612.43
5.3.00.0030.01912.39
5.2.170.0030.03310.62
5.2.160.0000.02310.62
5.2.150.0040.03410.68
5.2.140.0020.03810.69
5.2.130.0050.03010.67
5.2.120.0000.02010.67
5.2.110.0020.03710.67
5.2.100.0080.03310.60
5.2.90.0090.02910.57
5.2.80.0000.02910.61
5.2.70.0090.02810.59
5.2.60.0030.02010.55
5.2.50.0050.03310.61
5.2.40.0050.03310.62
5.2.30.0050.03510.62
5.2.20.0120.02110.64
5.2.10.0040.03310.50
5.2.00.0050.02210.46
5.1.60.0050.01610.12
5.1.50.0080.02510.11
5.1.40.0070.02010.11
5.1.30.0060.02810.24
5.1.20.0050.02210.25
5.1.10.0000.01710.20
5.1.00.0060.02710.17
5.0.50.0050.0159.42
5.0.40.0070.0179.34
5.0.30.0030.0239.34
5.0.20.0040.0249.34
5.0.10.0000.0149.34
5.0.00.0030.0189.34
4.4.90.0030.0169.34
4.4.80.0020.0219.34
4.4.70.0050.0189.34
4.4.60.0030.0199.34
4.4.50.0020.0209.34
4.4.40.0070.0259.34
4.4.30.0020.0189.34
4.4.20.0030.0089.34
4.4.10.0030.0159.34
4.4.00.0000.0309.34
4.3.110.0020.0219.34
4.3.100.0000.0219.34
4.3.90.0020.0149.34
4.3.80.0020.0279.34
4.3.70.0020.0219.34
4.3.60.0010.0189.34
4.3.50.0020.0129.34
4.3.40.0020.0289.34
4.3.30.0070.0099.34
4.3.20.0000.0199.34
4.3.10.0000.0209.34
4.3.00.0030.0189.34

preferences:
46.53 ms | 400 KiB | 5 Q