3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = 0; $n = 0; $m = 0; $list = array(8,1,7,-7,2,4,5,-14,0,1); for ($i=0;$i<=9;$i++) { if ($list[$i] >= 4) { $total = $total + $list[$i]; $m = $m + 1; } if ($list[$i] = 0) { $n = $n + 1; } } echo "The sum of the bigges is ".$total; echo "There were ".$n." zeros and ".$m." biggies." ?>

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)
8.3.60.0170.00318.43
8.3.50.0120.00321.14
8.3.40.0070.00718.79
8.3.30.0100.00320.19
8.3.20.0040.00418.73
8.3.10.0080.00021.02
8.3.00.0000.00722.32
8.2.180.0160.00316.38
8.2.170.0070.00722.96
8.2.160.0060.00920.38
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.77
8.2.110.0030.00722.25
8.2.100.0070.00417.91
8.2.90.0030.00519.33
8.2.80.0040.00419.38
8.2.70.0030.00517.63
8.2.60.0050.00318.16
8.2.50.0000.00818.07
8.2.40.0050.00319.97
8.2.30.0070.00021.21
8.2.20.0040.00417.63
8.2.10.0000.00717.75
8.2.00.0000.00917.73
8.1.280.0110.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0150.00322.66
8.1.230.0000.01220.97
8.1.220.0030.00618.77
8.1.210.0030.00618.85
8.1.200.0080.00017.48
8.1.190.0000.00817.40
8.1.180.0050.00318.10
8.1.170.0030.00618.70
8.1.160.0040.00418.84
8.1.150.0040.00418.64
8.1.140.0040.00417.45
8.1.130.0000.00817.83
8.1.120.0030.00317.48
8.1.110.0000.00717.51
8.1.100.0040.00417.39
8.1.90.0080.00017.45
8.1.80.0000.00717.35
8.1.70.0070.00017.43
8.1.60.0030.00617.60
8.1.50.0040.00417.36
8.1.40.0000.00717.43
8.1.30.0000.00717.64
8.1.20.0080.00017.48
8.1.10.0050.00217.51
8.1.00.0000.00817.34
8.0.300.0040.00420.02
8.0.290.0030.00517.05
8.0.280.0070.00018.44
8.0.270.0000.00717.32
8.0.260.0030.00316.93
8.0.250.0040.00416.81
8.0.240.0040.00416.99
8.0.230.0030.00316.91
8.0.220.0000.00716.91
8.0.210.0040.00516.91
8.0.200.0060.00016.84
8.0.190.0000.00716.96
8.0.180.0000.00716.92
8.0.170.0070.00016.87
8.0.160.0040.00416.98
8.0.150.0000.00716.88
8.0.140.0050.00216.81
8.0.130.0030.00313.36
8.0.120.0040.00416.89
8.0.110.0030.00516.74
8.0.100.0030.00316.91
8.0.90.0070.00016.76
8.0.80.0030.01316.82
8.0.70.0000.00716.71
8.0.60.0070.00016.96
8.0.50.0000.00716.77
8.0.30.0080.01016.90
8.0.20.0060.01217.40
8.0.10.0000.00716.75
8.0.00.0110.00616.82
7.4.330.0030.00316.69
7.4.320.0030.00316.53
7.4.300.0070.00016.59
7.4.290.0030.00316.57
7.4.280.0040.00416.48
7.4.270.0030.00316.63
7.4.260.0030.00313.22
7.4.250.0030.00516.46
7.4.240.0040.00416.59
7.4.230.0040.00416.50
7.4.220.0130.00716.43
7.4.210.0090.00516.53
7.4.200.0000.00716.24
7.4.190.0000.00716.70
7.4.160.0070.01016.63
7.4.150.0070.01017.40
7.4.140.0070.01017.86
7.4.130.0050.01416.43
7.4.120.0060.01116.52
7.4.110.0140.01116.51
7.4.100.0110.00616.43
7.4.90.0090.01516.32
7.4.80.0030.01419.39
7.4.70.0070.01516.35
7.4.60.0030.01316.48
7.4.50.0080.00016.54
7.4.40.0070.00722.77
7.4.30.0140.01216.56
7.4.00.0000.01715.07
7.3.330.0050.00013.23
7.3.320.0030.00313.30
7.3.310.0030.00316.19
7.3.300.0070.00016.18
7.3.290.0060.00916.30
7.3.280.0070.01016.30
7.3.270.0090.01517.40
7.3.260.0110.00818.24
7.3.250.0140.00516.37
7.3.240.0160.00016.54
7.3.230.0150.00316.59
7.3.210.0100.00716.51
7.3.200.0070.01019.39
7.3.190.0150.00616.43
7.3.180.0150.00016.41
7.3.170.0030.01116.36
7.3.160.0170.00016.54
7.3.120.0070.01114.64
7.2.330.0080.00816.86
7.2.320.0100.00716.55
7.2.310.0120.01216.77
7.2.300.0130.00816.39
7.2.290.0080.00816.62
7.2.60.0090.00616.91
7.2.00.0090.00619.36
7.1.200.0120.00315.95
7.1.100.0000.01118.21
7.1.70.0000.00817.26
7.1.60.0040.02219.24
7.1.50.0130.00316.90
7.1.00.0000.06322.35
7.0.200.0040.00416.81
7.0.140.0030.06722.15
7.0.100.0200.07019.96
7.0.90.0070.07719.86
7.0.80.0030.08320.02
7.0.70.0000.08019.98
7.0.60.0100.04319.88
7.0.50.0070.06020.22
7.0.40.0070.07720.05
7.0.30.0070.08320.04
7.0.20.0070.05720.08
7.0.10.0130.07020.09
7.0.00.0170.07720.09
5.6.280.0000.07720.86
5.6.250.0030.06720.59
5.6.240.0130.07020.76
5.6.230.0130.07720.55
5.6.220.0100.07720.62
5.6.210.0130.07320.68
5.6.200.0100.08321.02
5.6.190.0070.07721.17
5.6.180.0070.08021.08
5.6.170.0200.07321.04
5.6.160.0030.08021.07
5.6.150.0130.07721.18
5.6.140.0100.08321.05
5.6.130.0030.08720.96
5.6.120.0100.08021.00
5.6.110.0100.07020.99
5.6.100.0130.07321.07
5.6.90.0030.08020.93
5.6.80.0070.05320.46
5.6.70.0170.06020.36
5.6.60.0100.08020.30
5.6.50.0070.08320.32
5.6.40.0070.04720.32
5.6.30.0170.06320.40
5.6.20.0000.08320.43
5.6.10.0070.08020.26
5.6.00.0070.05320.40
5.5.380.0100.08320.50
5.5.370.0100.07720.40
5.5.360.0070.05720.34
5.5.350.0030.08720.48
5.5.340.0000.08720.92
5.5.330.0030.08020.93
5.5.320.0100.08020.83
5.5.310.0130.08320.92
5.5.300.0070.08020.83
5.5.290.0170.05320.93
5.5.280.0070.08320.92
5.5.270.0070.08020.89
5.5.260.0030.09020.73
5.5.250.0070.08020.64
5.5.240.0100.08020.25
5.5.230.0130.07320.15
5.5.220.0070.07720.29
5.5.210.0070.07020.25
5.5.200.0130.07720.11
5.5.190.0070.07720.12
5.5.180.0070.08020.15
5.5.160.0130.07020.08
5.5.150.0100.07320.12
5.5.140.0130.07320.10
5.5.130.0130.07320.18
5.5.120.0100.07320.25
5.5.110.0130.07320.14
5.5.100.0030.05720.11
5.5.90.0070.08320.06
5.5.80.0000.07319.94
5.5.70.0100.08019.90
5.5.60.0030.06020.08
5.5.50.0100.07319.92
5.5.40.0100.07320.08
5.5.30.0130.07020.05
5.5.20.0030.08320.05
5.5.10.0130.07020.12
5.5.00.0200.07020.06
5.4.450.0130.06319.45
5.4.440.0130.05019.39
5.4.430.0070.07719.40
5.4.420.0100.08019.46
5.4.410.0030.08019.23
5.4.400.0100.05319.13
5.4.390.0070.06718.94
5.4.380.0030.07719.12
5.4.370.0130.06719.06
5.4.360.0130.07019.12
5.4.350.0030.08319.13
5.4.340.0130.05018.82
5.4.320.0000.08018.84
5.4.310.0030.08019.13
5.4.300.0170.06319.07
5.4.290.0070.08019.13
5.4.280.0130.07318.90
5.4.270.0100.05719.07
5.4.260.0130.06319.13
5.4.250.0100.07719.13
5.4.240.0100.07019.02
5.4.230.0070.07718.78
5.4.220.0100.07719.05
5.4.210.0070.07318.94
5.4.200.0130.06719.02
5.4.190.0030.08319.03
5.4.180.0130.06318.97
5.4.170.0070.04319.22
5.4.160.0030.07718.88
5.4.150.0070.05319.10
5.4.140.0000.08016.22
5.4.130.0070.07016.01
5.4.120.0100.07016.01
5.4.110.0030.07316.45
5.4.100.0100.07016.47
5.4.90.0070.07016.26
5.4.80.0130.06316.25
5.4.70.0070.07316.23
5.4.60.0030.07716.40
5.4.50.0130.06316.32
5.4.40.0000.05316.34
5.4.30.0100.07316.39
5.4.20.0030.06016.19
5.4.10.0100.07016.31
5.4.00.0030.07715.76
5.3.290.0000.06014.65
5.3.280.0030.07014.59
5.3.270.0070.06714.57
5.3.260.0100.03714.43
5.3.250.0100.07714.61
5.3.240.0100.06714.59
5.3.230.0070.07714.59
5.3.220.0170.05314.43
5.3.210.0030.08314.55
5.3.200.0070.08314.51
5.3.190.0100.07014.43
5.3.180.0130.06714.57
5.3.170.0100.04714.54
5.3.160.0030.08014.41
5.3.150.0200.06314.53
5.3.140.0070.07714.56
5.3.130.0000.08014.52
5.3.120.0030.07314.46
5.3.110.0070.08014.39
5.3.100.0100.07314.00
5.3.90.0070.07014.00
5.3.80.0030.08014.01
5.3.70.0030.07714.00
5.3.60.0100.07714.00
5.3.50.0130.07014.00
5.3.40.0100.07014.00
5.3.30.0100.06314.00
5.3.20.0100.07314.00
5.3.10.0030.06714.00
5.3.00.0030.05014.00
5.2.170.0070.05014.00
5.2.160.0030.06014.00
5.2.150.0030.06314.00
5.2.140.0000.05314.00
5.2.130.0030.06314.00
5.2.120.0000.06314.00
5.2.110.0030.03314.00
5.2.100.0070.05014.00
5.2.90.0100.05314.00
5.2.80.0070.06314.00
5.2.70.0130.05014.00
5.2.60.0030.06314.00
5.2.50.0100.04714.00
5.2.40.0030.05314.00
5.2.30.0100.05714.00
5.2.20.0030.06314.00
5.2.10.0000.07014.00
5.2.00.0130.05314.00
5.1.60.0130.04714.00
5.1.50.0030.05314.00
5.1.40.0030.05014.00
5.1.30.0100.05014.00
5.1.20.0030.05714.00
5.1.10.0100.05314.00
5.1.00.0070.05314.00
5.0.50.0130.03314.00
5.0.40.0070.04014.00
5.0.30.0000.06714.00
5.0.20.0100.03714.00
5.0.10.0030.04314.00
5.0.00.0000.06314.00
4.4.90.0000.04014.00
4.4.80.0030.03014.00
4.4.70.0070.03314.00
4.4.60.0000.03314.00
4.4.50.0030.03314.00
4.4.40.0030.04014.00
4.4.30.0030.03314.00
4.4.20.0030.03014.00
4.4.10.0070.02714.00
4.4.00.0070.05314.00
4.3.110.0030.03714.00
4.3.100.0070.03014.00
4.3.90.0070.01314.00
4.3.80.0000.05714.00
4.3.70.0130.02314.00
4.3.60.0030.03314.00
4.3.50.0100.03314.00
4.3.40.0030.05014.00
4.3.30.0070.03014.00
4.3.20.0000.03314.00
4.3.10.0000.03714.00
4.3.00.0030.03014.00

preferences:
57.87 ms | 401 KiB | 5 Q