3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = microtime(true); $j = 0; for ($i = 0; $i < 10000; $i++) { $j+= $i; } echo sprintf('%0.4f', microtime(true) - $s);

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.1.70.0030.00616.95
7.1.60.0040.00717.26
7.1.50.0090.01317.05
7.1.00.0000.03722.51
7.0.200.0070.01116.93
7.0.140.0070.07021.97
7.0.60.0070.03719.93
7.0.50.0130.07717.80
7.0.40.0030.08020.23
7.0.30.0170.04020.02
7.0.20.0270.08320.01
7.0.10.0200.04020.21
7.0.00.0100.08020.12
5.6.280.0030.07721.08
5.6.210.0130.07720.63
5.6.200.0130.05718.18
5.6.190.0030.05020.40
5.6.180.0270.07720.49
5.6.170.0330.05720.46
5.6.160.0070.03720.65
5.6.150.0000.08718.18
5.6.140.0100.03318.16
5.6.130.0100.07718.13
5.6.120.0070.05320.98
5.6.110.0100.06721.02
5.6.100.0200.06721.04
5.6.90.0130.07721.01
5.6.80.0070.08020.37
5.6.70.0270.07720.47
5.5.350.0000.08020.43
5.5.340.0100.06318.00
5.5.330.0070.08320.25
5.5.320.0300.07020.41
5.5.310.0200.06720.20
5.5.300.0070.03717.92
5.5.290.0030.05317.91
5.5.280.0030.07320.73
5.5.270.0070.04320.72
5.5.260.0070.08320.76
5.5.250.0300.06720.57
5.5.240.0000.04320.27
5.4.450.0670.06319.14
5.4.440.0800.05319.48
5.4.430.0930.06319.40
5.4.420.0900.06019.14
5.4.410.1100.05319.32
5.4.400.1300.06018.62
5.4.390.0830.06018.57
5.4.380.0270.04718.56
5.4.370.0200.05318.68
5.4.360.0100.05318.68
5.4.350.0140.04311.98
5.4.340.0060.04311.97
5.4.320.0050.03712.46
5.4.310.0050.03812.45
5.4.300.0040.04112.46
5.4.290.0050.03712.45
5.4.280.0040.03612.35
5.4.270.0070.03712.35
5.4.260.0050.05012.35
5.4.250.0080.03512.35
5.4.240.0100.06718.88
5.4.230.0200.06018.64
5.4.220.0230.06318.98
5.4.210.0100.07318.87
5.4.200.0130.06318.91
5.4.190.0230.05718.77
5.4.180.0100.06718.86
5.4.170.0170.06018.64
5.4.160.0130.06718.68
5.4.150.0130.06018.68
5.4.140.0100.08016.22
5.4.130.0130.06016.46
5.4.120.0200.03716.36
5.4.110.0030.07016.49
5.4.100.0070.05716.49
5.4.90.0030.07016.49
5.4.80.0130.04716.41
5.4.70.0030.06016.28
5.4.60.0200.06316.47
5.4.50.0100.04716.35
5.4.40.0030.05316.42
5.4.30.0100.04716.48
5.4.20.0070.08016.35
5.4.10.0100.06716.44
5.4.00.0070.05015.89
5.3.290.0040.04112.80
5.3.280.0130.07014.36
5.3.270.0000.08314.37
5.3.260.0030.08314.46
5.3.250.0100.06314.54
5.3.240.0070.06314.61
5.3.230.0100.07014.61
5.3.220.0100.05314.48
5.3.210.0100.05014.56
5.3.200.0070.05314.57
5.3.190.0130.05014.48
5.3.180.0070.06314.42
5.3.170.0170.05314.57
5.3.160.0070.05314.65
5.3.150.0130.06314.57
5.3.140.0100.07714.25
5.3.130.0100.05014.54
5.3.120.0100.05014.55
5.3.110.0130.05714.46
5.3.100.0170.04714.18
5.3.90.0070.06014.02
5.3.80.0070.07313.87
5.3.70.0070.05013.96
5.3.60.0130.06714.00
5.3.50.0170.05713.94
5.3.40.0070.07313.95
5.3.30.0030.05013.82
5.3.20.0100.04713.70
5.3.10.0030.07013.64
5.3.00.0100.05713.51
5.2.170.0070.04310.92
5.2.160.0070.04311.25
5.2.150.0100.06011.02
5.2.140.0030.05311.17
5.2.130.0030.04311.25
5.2.120.0030.06011.09
5.2.110.0030.05711.22
5.2.100.0070.04011.03
5.2.90.0170.04711.01
5.2.80.0070.04311.10
5.2.70.0100.04711.10
5.2.60.0070.05710.94
5.2.50.0100.03710.94
5.2.40.0170.03710.90
5.2.30.0070.04010.96
5.2.20.0100.03310.84
5.2.10.0070.04010.93
5.2.00.0130.03010.89
5.1.60.0030.04710.18
5.1.50.0000.05010.11
5.1.40.0070.04010.19
5.1.30.0070.03710.33
5.1.20.0100.05010.49
5.1.10.0030.0379.91
5.1.00.0030.0379.95
5.0.50.0000.0338.72
5.0.40.0030.0308.64
5.0.30.0070.0438.19
5.0.20.0070.0438.32
5.0.10.0030.0408.08
5.0.00.0000.0478.19
4.4.90.0030.0236.89
4.4.80.0070.0306.89
4.4.70.0100.0176.89
4.4.60.0070.0206.89
4.4.50.0030.0236.89
4.4.40.0030.0376.89
4.4.30.0000.0276.89
4.4.20.0030.0336.89
4.4.10.0070.0206.89
4.4.00.0000.0376.89
4.3.110.0070.0206.89
4.3.100.0030.0236.89
4.3.90.0030.0236.89
4.3.80.0030.0336.89
4.3.70.0030.0236.89
4.3.60.0100.0206.89
4.3.50.0030.0236.89
4.3.40.0000.0376.89
4.3.30.0000.0276.89
4.3.20.0000.0276.89
4.3.10.0030.0236.89
4.3.00.0170.0206.84

preferences:
35.93 ms | 400 KiB | 5 Q