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.'<br />'; 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.70.0170.00318.43
8.3.60.0120.00316.61
8.3.50.0090.01417.44
8.3.40.0140.00418.79
8.3.30.0110.00418.67
8.3.20.0040.00418.59
8.3.10.0040.00420.52
8.3.00.0040.00419.05
8.2.180.0040.01118.16
8.2.170.0030.01022.96
8.2.160.0100.01020.69
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00719.39
8.2.110.0060.00321.04
8.2.100.0110.00017.84
8.2.90.0050.00519.24
8.2.80.0070.00019.39
8.2.70.0060.00317.63
8.2.60.0060.00618.04
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0060.00317.97
8.2.20.0000.01019.38
8.2.10.0000.00817.63
8.2.00.0000.00817.80
8.1.280.0170.00025.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00322.42
8.1.230.0110.00020.85
8.1.220.0000.00817.74
8.1.210.0000.00918.98
8.1.200.0060.00317.23
8.1.190.0030.00617.50
8.1.180.0030.00718.10
8.1.170.0000.00718.65
8.1.160.0070.00018.84
8.1.150.0000.00718.52
8.1.140.0040.00417.46
8.1.130.0030.00317.68
8.1.120.0000.00717.38
8.1.110.0050.00317.44
8.1.100.0040.00417.35
8.1.90.0080.00017.34
8.1.80.0050.00217.50
8.1.70.0030.00317.47
8.1.60.0040.00417.57
8.1.50.0050.00317.35
8.1.40.0040.00417.34
8.1.30.0080.00017.61
8.1.20.0070.00017.71
8.1.10.0000.00717.45
8.1.00.0000.00817.55
8.0.300.0040.00420.06
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0000.00717.27
8.0.260.0030.00316.75
8.0.250.0000.00716.84
8.0.240.0000.00716.99
8.0.230.0030.00316.88
8.0.220.0060.00016.94
8.0.210.0030.00516.92
8.0.200.0080.00016.84
8.0.190.0030.00516.94
8.0.180.0040.00416.89
8.0.170.0000.00816.97
8.0.160.0030.00316.96
8.0.150.0000.00816.91
8.0.140.0060.00216.93
8.0.130.0050.00013.32
8.0.120.0040.00416.82
8.0.110.0050.00216.74
8.0.100.0000.00717.00
8.0.90.0070.00016.78
8.0.80.0050.01016.88
8.0.70.0040.00416.89
8.0.60.0050.00316.87
8.0.50.0030.00316.84
8.0.30.0110.00717.24
8.0.20.0100.00917.13
8.0.10.0050.00217.08
8.0.00.0110.01116.79
7.4.330.0050.00012.99
7.4.320.0030.00316.50
7.4.300.0030.00316.55
7.4.290.0000.00616.53
7.4.280.0070.00016.61
7.4.270.0070.00016.50
7.4.260.0000.00613.28
7.4.250.0030.00616.35
7.4.240.0000.00616.53
7.4.230.0070.00016.61
7.4.220.0090.01016.65
7.4.210.0090.00716.58
7.4.200.0040.00416.58
7.4.190.0030.00316.68
7.4.160.0080.00816.55
7.4.150.0090.00916.43
7.4.140.0080.01016.60
7.4.130.0090.01016.43
7.4.120.0110.00616.49
7.4.110.0070.01116.48
7.4.100.0030.01316.42
7.4.90.0110.00616.64
7.4.80.0060.01319.39
7.4.70.0110.01116.62
7.4.60.0110.00516.39
7.4.50.0000.01216.42
7.4.40.0060.01016.23
7.4.30.0080.00816.63
7.4.00.0030.01015.14
7.3.330.0030.00313.00
7.3.320.0000.00613.01
7.3.310.0030.00316.34
7.3.300.0070.00016.27
7.3.290.0110.00716.15
7.3.280.0080.01116.24
7.3.270.0070.01416.58
7.3.260.0090.00916.58
7.3.250.0140.00616.44
7.3.240.0080.00816.42
7.3.230.0090.00916.63
7.3.210.0070.01016.20
7.3.200.0090.01216.30
7.3.190.0070.01416.30
7.3.180.0110.00716.28
7.3.170.0150.00616.35
7.3.160.0080.01216.30
7.3.120.0030.00914.65
7.2.330.0090.00916.73
7.2.320.0100.01016.61
7.2.310.0140.00816.79
7.2.300.0100.00716.34
7.2.290.0130.00316.45
7.2.00.0000.01619.52
7.1.100.0000.01217.90
7.1.70.0080.00417.21
7.1.60.0040.00719.40
7.1.50.0060.01316.64
7.1.00.0000.03722.30
7.0.200.0110.00614.94
7.0.140.0030.07022.11
7.0.120.0000.05722.06
7.0.60.0200.02719.85
7.0.50.0030.07717.80
7.0.40.0330.06720.03
7.0.30.0200.06320.04
7.0.20.0430.04320.26
7.0.10.0330.06020.23
7.0.00.0230.07720.04
5.6.280.0100.06721.02
5.6.210.0030.08720.72
5.6.200.0000.07018.08
5.6.190.0200.06020.60
5.6.180.0230.08320.36
5.6.170.0130.05720.67
5.6.160.0230.03720.60
5.6.150.0230.04320.44
5.6.140.0170.05320.13
5.6.130.0270.07720.40
5.6.120.0300.07320.11
5.6.110.0300.07020.43
5.6.100.0100.05020.45
5.6.90.0230.06020.44
5.6.80.0230.08019.59
5.6.70.0200.04019.75
5.6.60.0200.04019.83
5.6.50.0300.07019.76
5.6.40.0170.04719.80
5.6.30.0170.04319.79
5.6.20.0170.05319.63
5.6.10.0230.07719.81
5.6.00.0230.05719.72
5.5.350.0030.08720.40
5.5.340.0130.03318.02
5.5.330.0270.07720.40
5.5.320.0270.08320.57
5.5.310.0230.03720.15
5.5.300.0200.08020.07
5.5.290.0230.07720.12
5.5.280.0300.08020.24
5.5.270.0270.07720.13
5.5.260.0170.06020.22
5.5.250.0270.07719.96
5.5.240.0200.05019.29
5.5.230.0270.06319.45
5.5.220.0200.07019.55
5.5.210.0270.07719.61
5.5.200.0230.07719.43
5.5.190.0230.05019.59
5.5.180.0300.05319.49
5.5.160.0300.07719.48
5.5.150.0130.04719.51
5.5.140.0170.04019.49
5.5.130.0170.03719.53
5.5.120.0170.03719.48
5.5.110.0170.04319.25
5.5.100.0100.04019.45
5.5.90.0200.05319.16
5.5.80.0130.05719.42
5.5.70.0070.05319.50
5.5.60.0230.05719.39
5.5.50.0100.04319.47
5.5.40.0130.03719.55
5.5.30.0130.04019.44
5.5.20.0200.07319.16
5.5.10.0230.03719.50
5.5.00.0200.03719.23
5.4.450.0230.06719.48
5.4.440.0200.04019.40
5.4.430.0170.04719.40
5.4.420.0330.06719.43
5.4.410.0270.06719.31
5.4.400.0230.05019.16
5.4.390.0230.07718.81
5.4.380.0300.07018.81
5.4.370.0330.04319.09
5.4.360.0230.07719.09
5.4.350.0170.04018.92
5.4.340.0230.07719.20
5.4.320.0130.04319.18
5.4.310.0130.04018.93
5.4.300.0130.04019.18
5.4.290.0170.03719.14
5.4.280.0100.05019.20
5.4.270.0130.04018.79
5.4.260.0170.03319.10
5.4.250.0170.03319.14
5.4.240.0130.07718.79
5.4.230.0200.03319.13
5.4.220.0270.02718.81
5.4.210.0170.04018.91
5.4.200.0170.03319.00
5.4.190.0070.04319.10
5.4.180.0200.04019.17
5.4.170.0230.04019.17
5.4.160.0130.04018.89
5.4.150.0200.03719.16
5.4.140.0130.07316.16
5.4.130.0100.04016.32
5.4.120.0230.02716.27
5.4.110.0200.04716.27
5.4.100.0100.04016.36
5.4.90.0230.02716.24
5.4.80.0130.03716.24
5.4.70.0230.03316.39
5.4.60.0170.03016.59
5.4.50.0130.03316.32
5.4.40.0130.03716.34
5.4.30.0130.03316.36
5.4.20.0070.04016.25
5.4.10.0070.04016.43
5.4.00.0230.02715.82
5.3.290.0270.03714.59
5.3.280.0170.06314.52
5.3.270.0170.07014.56
5.3.260.0100.04714.52
5.3.250.0230.06714.53
5.3.240.0170.07314.42
5.3.230.0170.08014.52
5.3.220.0130.03714.49
5.3.210.0100.04014.65
5.3.200.0100.04014.49
5.3.190.0130.03714.50
5.3.180.0130.03714.49
5.3.170.0100.03714.54
5.3.160.0130.03714.53
5.3.150.0200.03314.58
5.3.140.0170.03314.48
5.3.130.0170.03314.63
5.3.120.0230.02714.52
5.3.110.0100.04014.44
5.3.100.0200.03713.91
5.3.90.0230.02713.95
5.3.80.0100.05313.96
5.3.70.0170.04013.98
5.3.60.0270.06313.96
5.3.50.0270.06713.78
5.3.40.0270.04313.78
5.3.30.0200.07314.00
5.3.20.0200.06313.63
5.3.10.0300.06313.61
5.3.00.0200.03313.58
5.2.170.0200.03312.22
5.2.160.0100.04012.22
5.2.150.0270.04012.22
5.2.140.0330.02712.22
5.2.130.0200.02712.22
5.2.120.0230.05012.22
5.2.110.0270.05312.22
5.2.100.0200.03012.22
5.2.90.0230.05012.22
5.2.80.0170.06012.22
5.2.70.0200.06012.22
5.2.60.0300.04712.22
5.2.50.0170.04012.22
5.2.40.0130.03712.22
5.2.30.0130.04312.22
5.2.20.0100.06712.22
5.2.10.0230.05312.22
5.2.00.0100.04012.22
5.1.60.0230.02012.22
5.1.50.0200.04712.22
5.1.40.0130.03012.22
5.1.30.0130.06012.22
5.1.20.0200.05012.22
5.1.10.0130.03012.22
5.1.00.0170.05312.22
5.0.50.0170.04012.22
5.0.40.0100.04312.22
5.0.30.0070.06712.22
5.0.20.0030.03312.22
5.0.10.0130.03712.22
5.0.00.0070.04712.22
4.4.90.0070.02712.22
4.4.80.0130.01712.22
4.4.70.0070.04012.22
4.4.60.0070.03012.22
4.4.50.0100.03312.22
4.4.40.0130.04012.22
4.4.30.0100.02012.22
4.4.20.0070.02712.22
4.4.10.0100.02312.22
4.4.00.0070.05712.22
4.3.110.0070.03712.22
4.3.100.0070.03712.22
4.3.90.0070.03012.22
4.3.80.0070.03712.22
4.3.70.0030.03012.22
4.3.60.0100.03312.22
4.3.50.0130.02712.22
4.3.40.0100.05012.22
4.3.30.0000.04012.22
4.3.20.0070.03312.22
4.3.10.0030.02312.22
4.3.00.0100.03312.22

preferences:
43.88 ms | 401 KiB | 5 Q