3v4l.org

run code in 300+ PHP versions simultaneously
<?php while (true) { $rand1 = mt_rand()/RAND_MAX; $rand2 = mt_rand()/RAND_MAX; if (bcmod($rand1, $rand2) != fmod($rand1, $rand2)) { echo $rand1." ".$rand2; break; } }

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.00.0070.01015.05
7.3.120.0080.00414.91
7.3.110.0130.00714.85
7.3.100.0030.01415.14
7.3.90.0070.00714.56
7.3.80.0060.00314.86
7.3.70.0090.00314.95
7.3.60.0050.00514.87
7.3.50.0100.00714.75
7.3.40.0000.01014.81
7.3.30.0030.00715.04
7.3.20.0000.01516.64
7.3.10.0030.01016.86
7.3.00.0110.00416.64
7.2.250.0060.01215.20
7.2.240.0090.00914.79
7.2.230.0090.00615.07
7.2.220.0090.00614.81
7.2.210.0060.00314.85
7.2.200.0040.00815.26
7.2.190.0080.00815.00
7.2.180.0110.00415.08
7.2.170.0030.00714.91
7.2.160.0030.00714.94
7.2.150.0060.00617.15
7.2.140.0000.01117.04
7.2.130.0030.01017.10
7.2.120.0030.01016.90
7.2.110.0070.00716.95
7.2.100.0050.00516.89
7.2.90.0000.01217.11
7.2.80.0000.00916.81
7.2.70.0130.00316.84
7.2.60.0070.00717.03
7.2.50.0060.00316.79
7.2.40.0120.00317.15
7.2.30.0000.01017.09
7.2.20.0070.00717.10
7.2.10.0090.00016.71
7.2.00.0070.01018.12
7.1.330.0140.00316.01
7.1.320.0070.00315.75
7.1.310.0060.00315.70
7.1.300.0060.00315.66
7.1.290.0060.00615.74
7.1.280.0030.00715.69
7.1.270.0040.00715.91
7.1.260.0030.01015.93
7.1.250.0000.01315.87
7.1.240.0060.00615.78
7.1.230.0070.00715.67
7.1.220.0070.00715.49
7.1.210.0040.00715.82
7.1.200.0000.01215.83
7.1.190.0000.01415.79
7.1.180.0090.00315.92
7.1.170.0000.01615.82
7.1.160.0090.00615.86
7.1.150.0050.00515.79
7.1.140.0040.01115.67
7.1.130.0070.00715.57
7.1.120.0000.01415.63
7.1.110.0030.00515.62
7.1.100.0060.00615.84
7.1.90.0000.01315.81
7.1.80.0090.00615.86
7.1.70.0040.00516.57
7.1.60.0090.01017.55
7.1.50.0090.01116.32
7.1.40.0030.01315.82
7.1.30.0060.00615.98
7.1.20.0030.01015.76
7.1.10.0030.01015.96
7.1.00.0030.04319.19
7.0.330.0040.00415.53
7.0.320.0060.00615.28
7.0.310.0030.00715.39
7.0.300.0110.00415.68
7.0.290.0030.00915.32
7.0.280.0070.00715.22
7.0.270.0070.00715.60
7.0.260.0030.00515.36
7.0.250.0120.00015.49
7.0.240.0080.00415.55
7.0.230.0060.00615.58
7.0.220.0030.01015.44
7.0.210.0040.00815.39
7.0.200.0170.00715.12
7.0.190.0000.01615.45
7.0.180.0070.00315.48
7.0.170.0000.00815.52
7.0.160.0090.00415.51
7.0.150.0030.00615.36
7.0.140.0050.03818.88
7.0.130.0000.00815.37
7.0.120.0000.01115.62
7.0.110.0100.00315.32
7.0.100.0000.00815.42
7.0.90.0160.04617.84
7.0.80.0090.03417.70
7.0.70.0140.03517.74
7.0.60.0200.04117.80
7.0.50.0110.02818.02
7.0.40.0100.04216.96
7.0.30.0080.04216.87
7.0.20.0100.03416.82
7.0.10.0040.04416.85
7.0.00.0080.04416.91
5.6.400.0030.01014.38
5.6.390.0040.00814.39
5.6.380.0030.00814.19
5.6.370.0000.01314.79
5.6.360.0060.01014.57
5.6.350.0090.00014.70
5.6.340.0070.00714.71
5.6.330.0110.00314.02
5.6.320.0030.00914.31
5.6.310.0030.00714.45
5.6.300.0060.01014.56
5.6.290.0000.01514.65
5.6.280.0030.04817.47
5.6.270.0100.00714.59
5.6.260.0090.00414.49
5.6.250.0060.00614.25
5.6.240.0070.00414.29
5.6.230.0050.04617.54
5.6.220.0070.04817.52
5.6.210.0080.02317.59
5.6.200.0080.04317.77
5.6.190.0070.03017.73
5.6.180.0080.04517.82
5.6.170.0110.04317.74
5.6.160.0020.03717.83
5.6.150.0080.02517.79
5.6.140.0060.04517.79
5.6.130.0130.04017.81
5.6.120.0110.04117.85
5.6.110.0080.02817.79
5.6.100.0050.04017.66
5.6.90.0050.04817.74
5.6.80.0020.03117.55
5.6.70.0060.03917.49
5.6.60.0050.03017.54
5.6.50.0100.02017.43
5.6.40.0100.03217.44
5.6.30.0070.04517.51
5.6.20.0090.03917.46
5.6.10.0030.05117.43
5.6.00.0040.03917.49
5.5.380.0060.00614.04
5.5.370.0070.04617.59
5.5.360.0080.04717.58
5.5.350.0150.03717.43
5.5.340.0050.03417.64
5.5.330.0090.03817.65
5.5.320.0150.03917.82
5.5.310.0030.04617.75
5.5.300.0110.04017.76
5.5.290.0080.04517.73
5.5.280.0070.04317.86
5.5.270.0080.02717.78
5.5.260.0110.03117.68
5.5.250.0080.04317.53
5.5.240.0030.04017.29
5.5.230.0060.02517.34
5.5.220.0040.03417.42
5.5.210.0040.02617.24
5.5.200.0100.02517.25
5.5.190.0070.02717.29
5.5.180.0070.04217.38
5.5.170.0060.00914.40
5.5.160.0040.04517.18
5.5.150.0100.03817.47
5.5.140.0050.04517.45
5.5.130.0080.02517.29
5.5.120.0070.03517.31
5.5.110.0030.04317.44
5.5.100.0060.04317.20
5.5.90.0100.04017.29
5.5.80.0080.04217.32
5.5.70.0060.03017.38
5.5.60.0040.03617.25
5.5.50.0110.04017.36
5.5.40.0030.03816.98
5.5.30.0020.04517.30
5.5.20.0030.04317.28
5.5.10.0080.03917.38
5.5.00.0050.02717.26
5.4.450.0080.03715.89
5.4.440.0070.04015.95
5.4.430.0070.03115.89
5.4.420.0080.02415.88
5.4.410.0070.02715.99
5.4.400.0050.03715.79
5.4.390.0070.02015.78
5.4.380.0070.02015.72
5.4.370.0050.03215.78
5.4.360.0080.04015.83
5.4.350.0050.04215.78
5.4.340.0050.04315.79
5.4.330.0060.00312.36
5.4.320.0150.03115.72
5.4.310.0100.03315.79
5.4.300.0050.04215.77
5.4.290.0080.03615.74
5.4.280.0060.03815.78
5.4.270.0050.02715.78
5.4.260.0080.03715.74
5.4.250.0070.03515.77
5.4.240.0050.04315.78
5.4.230.0030.04115.72
5.4.220.0080.04115.74
5.4.210.0080.03815.82
5.4.200.0080.02315.72
5.4.190.0090.03215.77
5.4.180.0020.03915.83
5.4.170.0080.02815.76
5.4.160.0070.03015.66
5.4.150.0020.02715.78
5.4.140.0040.02314.37
5.4.130.0040.02214.45
5.4.120.0030.02314.46
5.4.110.0020.02414.48
5.4.100.0060.02114.42
5.4.90.0000.02414.46
5.4.80.0050.02614.47
5.4.70.0080.01514.40
5.4.60.0080.03614.45
5.4.50.0050.01814.44
5.4.40.0070.02014.44
5.4.30.0080.01814.47
5.4.20.0030.02014.47
5.4.10.0060.01814.35
5.4.00.0030.03114.18
5.3.290.0030.08314.84
5.3.280.0130.05014.66
5.3.270.0030.04314.67
5.3.260.0030.04014.80
5.3.250.0100.03314.66
5.3.240.0030.04014.76
5.3.230.0070.03314.66
5.3.220.0100.03014.73
5.3.210.0070.03714.64
5.3.200.0030.04314.72
5.3.190.0000.04014.66
5.3.180.0000.03714.64
5.3.170.0070.03314.63
5.3.160.0130.02714.67
5.3.150.0070.03314.65
5.3.140.0030.04714.64
5.3.130.0030.03714.71
5.3.120.0030.04014.63
5.3.110.0070.03714.65
5.3.100.0030.06714.08
5.3.90.0070.03314.08
5.3.80.0100.03014.12
5.3.70.0000.04014.01
5.3.60.0030.03714.09
5.3.50.0030.03314.04
5.3.40.0000.03314.01
5.3.30.0070.03013.93
5.3.20.0030.06013.88
5.3.10.0030.03713.71
5.3.00.0000.03713.71
5.2.170.0100.02313.59
5.2.160.0000.02713.59
5.2.150.0030.03313.59
5.2.140.0030.02713.59
5.2.130.0030.02713.59
5.2.120.0070.02313.59
5.2.110.0030.04313.59
5.2.100.0030.02713.59
5.2.90.0030.02713.59
5.2.80.0070.02313.59
5.2.70.0030.02713.59
5.2.60.0000.03013.59
5.2.50.0000.03713.59
5.2.40.0000.02713.59
5.2.30.0030.02713.59
5.2.20.0070.02313.59
5.2.10.0000.03713.59
5.2.00.0030.05313.59
5.1.60.0000.02713.59
5.1.50.0030.02313.59
5.1.40.0070.02313.59
5.1.30.0000.04013.59
5.1.20.0000.04313.59
5.1.10.0030.02713.59
5.1.00.0000.02313.59
5.0.50.0000.02013.59
5.0.40.0000.02313.59
5.0.30.0070.02713.59
5.0.20.0000.02013.59
5.0.10.0000.02313.59
5.0.00.0030.03013.59
4.4.90.0000.01713.59
4.4.80.0030.01313.59
4.4.70.0000.02013.59
4.4.60.0000.03013.59
4.4.50.0000.01313.59
4.4.40.0000.02313.59
4.4.30.0000.02713.59
4.4.20.0000.01313.59
4.4.10.0030.01013.59
4.4.00.0000.02313.59
4.3.110.0030.02013.59
4.3.100.0030.01313.59
4.3.90.0030.01013.59
4.3.80.0000.04013.59
4.3.70.0000.03313.59
4.3.60.0070.03013.59
4.3.50.0070.03013.59
4.3.40.0070.05013.59
4.3.30.0000.03713.59
4.3.20.0000.04013.59
4.3.10.0000.03713.59
4.3.00.0000.03713.59

preferences:
42 ms | 400 KiB | 5 Q