3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); for ($i=0;$i<9999;$i++) { fmod(34, 4294967296); } $end = microtime(true); echo $end-$start."\n"; $start = microtime(true); for ($i=0;$i<9999;$i++) { bcmod('34', '4294967296'); } $end = microtime(true); echo $end-$start."\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.4.00.0050.02014.96
7.3.120.0060.02314.93
7.3.110.0100.01715.03
7.3.100.0020.02015.04
7.3.90.0050.02014.87
7.3.80.0090.01514.92
7.3.70.0020.01814.70
7.3.60.0080.01414.94
7.3.50.0070.01514.94
7.3.40.0080.01414.87
7.3.30.0110.01314.63
7.3.20.0060.01516.45
7.3.10.0070.01716.37
7.3.00.0080.01516.63
7.2.250.0030.02215.11
7.2.240.0060.02115.09
7.2.230.0070.01315.19
7.2.220.0070.01715.12
7.2.210.0070.01615.14
7.2.200.0060.01715.07
7.2.190.0020.01915.00
7.2.180.0040.01614.94
7.2.170.0060.01415.18
7.2.00.0000.02019.41
7.1.330.0080.01615.64
7.1.320.0110.01315.85
7.1.310.0050.01616.09
7.1.300.0080.01215.81
7.1.290.0020.02015.74
7.1.280.0040.01915.82
7.1.270.0020.02215.88
7.1.260.0020.02115.60
7.1.70.0070.00717.25
7.1.60.0100.02319.40
7.1.50.0030.01616.91
7.1.00.0030.06322.66
7.0.200.0000.01116.73
7.0.140.0030.08022.20
7.0.100.0100.04321.90
7.0.90.0000.08721.86
7.0.80.0070.08021.74
7.0.70.0030.09021.84
7.0.60.0030.09021.82
7.0.50.0030.09022.21
7.0.40.0030.07720.21
7.0.30.0030.08020.09
7.0.20.0030.09020.25
7.0.10.0000.05320.27
7.0.00.0030.04320.28
5.6.280.0030.08721.21
5.6.250.0030.06320.90
5.6.240.0070.05020.79
5.6.230.0100.07720.78
5.6.220.0070.08720.73
5.6.210.0000.09720.86
5.6.200.0130.09321.21
5.6.190.0000.08721.11
5.6.180.0130.04721.24
5.6.170.0070.04721.16
5.6.160.0000.05021.21
5.6.150.0000.08721.20
5.6.140.0100.03721.20
5.6.130.0070.08721.11
5.6.120.0070.09321.20
5.6.110.0000.08321.14
5.6.100.0030.04721.02
5.6.90.0000.05021.14
5.6.80.0030.04320.62
5.6.70.0030.04020.50
5.6.60.0030.04320.56
5.6.50.0000.04720.50
5.6.40.0000.04320.58
5.6.30.0030.04720.48
5.6.20.0030.09020.56
5.6.10.0030.04020.55
5.6.00.0000.04720.39
5.5.380.0000.08720.44
5.5.370.0030.06020.46
5.5.360.0070.09320.44
5.5.350.0170.08320.48
5.5.340.0130.05720.96
5.5.330.0030.09020.86
5.5.320.0070.04320.96
5.5.310.0000.05320.87
5.5.300.0070.03720.92
5.5.290.0070.08720.95
5.5.280.0030.04320.93
5.5.270.0070.05320.80
5.5.260.0100.05720.94
5.5.250.0070.07320.68
5.5.240.0030.04320.33
5.5.230.0030.04720.25
5.5.220.0000.04720.32
5.5.210.0100.08320.33
5.5.200.0000.04320.22
5.5.190.0000.04320.27
5.5.180.0000.04720.20
5.5.160.0000.05720.39
5.5.150.0030.08320.29
5.5.140.0030.05720.29
5.5.130.0030.04720.30
5.5.120.0130.08020.17
5.5.110.0130.08320.20
5.5.100.0070.08320.12
5.5.90.0070.08720.25
5.5.80.0070.08720.07
5.5.70.0070.08720.20
5.5.60.0030.09320.22
5.5.50.0070.08020.09
5.5.40.0070.08720.29
5.5.30.0070.06720.17
5.5.20.0070.09020.04
5.5.10.0070.08320.10
5.5.00.0130.06020.14
5.4.450.0030.07019.58
5.4.440.0130.06719.35
5.4.430.0030.06719.69
5.4.420.0000.05719.26
5.4.410.0070.06719.55
5.4.400.0000.05019.25
5.4.390.0000.05019.16
5.4.380.0030.03719.22
5.4.370.0000.05018.87
5.4.360.0030.04719.03
5.4.350.0030.04019.12
5.4.340.0070.04019.14
5.4.320.0000.04719.36
5.4.310.0030.05018.84
5.4.300.0000.08319.22
5.4.290.0030.05719.25
5.4.280.0030.07319.12
5.4.270.0070.04719.23
5.4.260.0070.07019.07
5.4.250.0170.06719.04
5.4.240.0030.08018.84
5.4.230.0070.08319.34
5.4.220.0030.08319.02
5.4.210.0000.07719.35
5.4.200.0000.09019.26
5.4.190.0100.08019.25
5.4.180.0030.09319.03
5.4.170.0000.09319.18
5.4.160.0070.07719.04
5.4.150.0000.07719.13
5.4.140.0070.08716.39
5.4.130.0030.07016.47
5.4.120.0070.07716.41
5.4.110.0070.04016.39
5.4.100.0000.06016.36
5.4.90.0030.07716.50
5.4.80.0030.08316.49
5.4.70.0070.07016.48
5.4.60.0070.08016.34
5.4.50.0100.04316.33
5.4.40.0070.08016.56
5.4.30.0030.05316.48
5.4.20.0070.08016.46
5.4.10.0070.08016.36
5.4.00.0000.07015.90
5.3.290.0030.04314.48
5.3.280.0130.06314.60
5.3.270.0030.08314.57
5.3.260.0070.08314.55
5.3.250.0030.08714.44
5.3.240.0000.07014.61
5.3.230.0070.07714.55
5.3.220.0030.08714.55
5.3.210.0000.09014.56
5.3.200.0030.08714.55
5.3.190.0070.09014.50
5.3.180.0070.06014.54
5.3.170.0070.07014.41
5.3.160.0070.08314.43
5.3.150.0070.08314.52
5.3.140.0130.08014.51
5.3.130.0070.08314.40
5.3.120.0030.06014.50
5.3.110.0030.08314.54
5.3.100.0100.06314.01
5.3.90.0030.08313.88
5.3.80.0030.05713.96
5.3.70.0030.07313.78
5.3.60.0070.08014.00
5.3.50.0130.07713.85
5.3.40.0030.09313.80
5.3.30.0000.08313.76
5.3.20.0030.08713.65
5.3.10.0030.08713.66
5.3.00.0000.08713.59
5.2.170.0070.07011.19
5.2.160.0000.05711.19
5.2.150.0030.04711.14
5.2.140.0030.06011.13
5.2.130.0030.05011.05
5.2.120.0030.07011.09
5.2.110.0030.07011.07
5.2.100.0000.07011.14
5.2.90.0030.05711.10
5.2.80.0070.07010.94
5.2.70.0030.04010.95
5.2.60.0030.07011.05
5.2.50.0000.07710.97
5.2.40.0070.07310.97
5.2.30.0070.05711.00
5.2.20.0030.07310.96
5.2.10.0030.06310.80
5.2.00.0000.06710.61
5.1.60.0070.06310.02
5.1.50.0000.0609.99
5.1.40.0030.0639.97
5.1.30.0030.05710.25
5.1.20.0030.03710.27
5.1.10.0000.0679.95
5.1.00.0130.04310.05
5.0.50.0070.0539.06
5.0.40.0000.0609.06
5.0.30.0030.0809.06
5.0.20.0030.0609.06
5.0.10.0000.0339.06
5.0.00.0030.0739.06
4.4.90.0070.0479.06
4.4.80.0000.0479.06
4.4.70.0000.0509.06
4.4.60.0030.0479.06
4.4.50.0000.0509.06
4.4.40.0030.0679.06
4.4.30.0000.0539.06
4.4.20.0000.0579.06
4.4.10.0030.0509.06
4.4.00.0030.0609.06
4.3.110.0070.0539.06
4.3.100.0030.0509.06
4.3.90.0000.0509.06
4.3.80.0030.0609.06
4.3.70.0030.0479.06
4.3.60.0070.0439.06
4.3.50.0000.0509.06
4.3.40.0000.0609.06
4.3.30.0000.0509.06
4.3.20.0000.0539.06
4.3.10.0000.0339.06
4.3.00.0070.0509.06

preferences:
33.21 ms | 403 KiB | 5 Q