3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result=range(1,5); $left=count($result); $colLeft=4; $limit=0; $i=0; foreach($result as $row) { if($i==0) { $limit=ceil($left/$colLeft); echo '<tr>'; } echo '<td>'.$row.'</td>'; $i++; $left--; if($i>=$limit) { echo '</td>'; $i=0; $colLeft--; } }

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.40.0040.01118.66
8.3.30.0070.00718.94
8.3.20.0070.00020.39
8.3.10.0040.00423.74
8.3.00.0040.00421.02
8.2.170.0110.00322.96
8.2.160.0070.01020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.48
8.2.110.0060.00322.20
8.2.100.0040.00720.71
8.2.90.0000.00819.04
8.2.80.0030.00517.97
8.2.70.0070.00317.75
8.2.60.0050.00517.93
8.2.50.0060.00318.07
8.2.40.0040.00420.06
8.2.30.0000.00718.30
8.2.20.0040.00417.69
8.2.10.0070.00018.20
8.2.00.0000.00719.60
8.1.270.0040.00423.97
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00618.66
8.1.230.0080.00419.14
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0040.00417.13
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0000.00818.52
8.1.160.0000.00821.96
8.1.150.0040.00418.66
8.1.140.0060.00317.60
8.1.130.0050.00217.81
8.1.120.0000.00817.48
8.1.110.0070.00017.48
8.1.100.0000.00717.50
8.1.90.0070.00017.40
8.1.80.0030.00317.39
8.1.70.0000.00717.51
8.1.60.0060.00317.65
8.1.50.0040.00417.57
8.1.40.0030.00717.44
8.1.30.0040.00417.63
8.1.20.0040.00417.65
8.1.10.0000.00817.55
8.1.00.0030.00617.55
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00318.51
8.0.270.0040.00417.21
8.0.260.0030.00317.27
8.0.250.0030.00317.03
8.0.240.0070.00016.88
8.0.230.0030.00316.98
8.0.220.0030.00316.90
8.0.210.0030.00316.95
8.0.200.0000.00616.98
8.0.190.0000.00717.00
8.0.180.0050.00216.86
8.0.170.0000.00816.96
8.0.160.0070.00016.88
8.0.150.0000.00716.95
8.0.140.0000.00716.92
8.0.130.0000.00713.46
8.0.120.0030.00516.96
8.0.110.0070.00016.85
8.0.100.0050.00216.79
8.0.90.0000.00816.95
8.0.80.0080.00816.82
8.0.70.0040.00416.98
8.0.60.0000.00716.89
8.0.50.0000.00716.97
8.0.30.0120.00817.17
8.0.20.0100.01217.40
8.0.10.0070.00017.09
8.0.00.0150.00516.99
7.4.330.0000.00515.03
7.4.320.0030.00316.60
7.4.300.0030.00316.57
7.4.290.0030.00316.55
7.4.280.0040.00416.66
7.4.270.0000.00716.68
7.4.260.0030.00316.46
7.4.250.0030.00516.65
7.4.240.0050.00216.61
7.4.230.0000.00716.75
7.4.220.0090.00916.52
7.4.210.0090.00616.67
7.4.200.0070.00016.59
7.4.160.0240.02116.49
7.4.150.0030.01417.40
7.4.140.0110.00617.86
7.4.130.0050.01216.47
7.4.120.0120.00916.63
7.4.110.0120.00416.51
7.4.100.0130.00316.47
7.4.90.0140.01016.42
7.4.80.0060.01219.39
7.4.70.0120.00416.61
7.4.60.0070.01616.59
7.4.50.0040.00416.71
7.4.40.0060.01016.48
7.4.30.0030.01316.54
7.4.10.0080.01216.49
7.4.00.0100.01015.60
7.3.330.0030.00313.30
7.3.320.0070.00013.24
7.3.310.0030.00316.33
7.3.300.0040.00416.29
7.3.290.0060.00916.36
7.3.280.0080.00916.38
7.3.270.0110.00917.40
7.3.260.0140.01016.38
7.3.250.0140.00516.39
7.3.240.0150.00416.60
7.3.230.0120.00316.56
7.3.210.0170.00016.57
7.3.200.0120.00619.39
7.3.190.0080.01116.41
7.3.180.0110.00616.45
7.3.170.0060.00916.29
7.3.160.0130.00316.64
7.3.130.0030.01716.61
7.3.120.0070.00715.72
7.3.110.0150.00316.28
7.3.100.0070.01416.63
7.3.90.0070.01316.30
7.3.80.0060.01316.64
7.3.70.0070.00716.40
7.3.60.0140.00416.53
7.3.50.0000.01816.34
7.3.40.0100.00016.28
7.3.30.0100.00716.54
7.3.20.0060.00618.22
7.3.10.0080.00818.33
7.3.00.0030.01318.16
7.2.330.0100.00616.71
7.2.320.0090.01316.80
7.2.310.0110.00616.44
7.2.300.0090.01516.77
7.2.290.0060.01016.63
7.2.260.0060.01316.62
7.2.250.0060.01316.59
7.2.240.0110.00716.77
7.2.230.0030.01316.44
7.2.220.0140.00316.73
7.2.210.0110.00316.64
7.2.200.0070.00716.69
7.2.190.0120.00416.70
7.2.180.0040.01416.54
7.2.170.0060.00316.60
7.2.160.0040.00916.45
7.2.150.0160.00018.58
7.2.140.0030.01318.52
7.2.130.0040.01118.33
7.2.120.0040.01118.36
7.2.110.0040.01118.46
7.2.100.0120.00318.52
7.2.90.0060.00818.55
7.2.80.0070.00718.62
7.2.70.0070.00318.41
7.2.60.0030.00618.51
7.2.50.0030.01218.49
7.2.40.0070.01118.50
7.2.30.0090.00618.53
7.2.20.0060.00918.50
7.2.10.0090.00918.39
7.2.00.0080.00819.00
7.1.330.0030.01317.43
7.1.320.0030.01717.58
7.1.310.0030.00617.41
7.1.300.0090.00317.48
7.1.290.0060.00317.36
7.1.280.0070.01017.33
7.1.270.0030.01117.27
7.1.260.0030.00617.35
7.1.250.0030.01017.39
7.1.240.0110.00417.32
7.1.230.0070.01017.29
7.1.220.0000.01517.24
7.1.210.0060.00617.45
7.1.200.0000.01017.37
7.1.190.0110.00417.44
7.1.180.0000.00917.16
7.1.170.0080.00417.38
7.1.160.0060.00917.43
7.1.150.0100.00617.41
7.1.140.0070.01017.38
7.1.130.0100.00317.21
7.1.120.0100.00717.48
7.1.110.0040.01117.31
7.1.100.0080.00517.86
7.1.90.0030.00917.31
7.1.80.0100.00617.45
7.1.70.0050.00717.35
7.1.60.0100.00818.46
7.1.50.0100.01017.08
7.1.40.0070.00717.19
7.1.30.0070.00717.50
7.1.20.0040.00817.55
7.1.10.0030.01017.39
7.1.00.0030.04319.90
7.0.330.0070.00717.07
7.0.320.0110.00017.18
7.0.310.0030.00716.86
7.0.300.0040.01117.10
7.0.290.0040.01217.10
7.0.280.0100.00616.93
7.0.270.0030.01016.92
7.0.260.0030.00716.91
7.0.250.0000.01317.21
7.0.240.0000.01017.18
7.0.230.0070.00717.11
7.0.220.0060.00916.98
7.0.210.0060.00916.87
7.0.200.0020.01316.98
7.0.190.0040.00917.30
7.0.180.0030.01417.27
7.0.170.0000.01117.16
7.0.160.0040.00416.94
7.0.150.0040.01117.00
7.0.140.0030.04519.61
7.0.130.0030.01017.07
7.0.120.0030.00617.16
7.0.110.0030.01017.02
7.0.100.0030.01016.98
7.0.90.0000.01117.18
7.0.80.0060.00317.13
7.0.70.0140.00417.11
7.0.60.0070.04418.52
7.0.50.0030.02717.40
7.0.40.0100.04417.57
7.0.30.0170.02217.54
7.0.20.0190.04217.51
7.0.10.0180.02217.58
7.0.00.0040.02217.49
5.6.400.0070.01015.83
5.6.390.0110.00016.13
5.6.380.0060.00615.69
5.6.370.0030.00915.98
5.6.360.0130.00316.01
5.6.350.0090.00315.77
5.6.340.0170.00016.07
5.6.330.0140.00415.97
5.6.320.0060.00615.69
5.6.310.0060.00915.75
5.6.300.0040.00815.81
5.6.290.0030.00615.71
5.6.280.0030.03818.45
5.6.270.0000.01516.20
5.6.260.0080.00616.09
5.6.250.0040.00915.78
5.6.240.0060.00615.97
5.6.230.0040.00716.04
5.6.220.0120.00016.00
5.6.210.0070.04818.26
5.6.200.0060.03516.93
5.6.190.0130.04018.26
5.6.180.0040.02418.20
5.6.170.0200.02818.16
5.6.160.0100.04118.15
5.6.150.0050.02716.93
5.6.140.0080.04117.00
5.6.130.0050.03017.11
5.6.120.0020.02918.46
5.6.110.0120.03918.51
5.6.100.0060.02418.57
5.6.90.0030.04718.40
5.6.80.0030.04818.09
5.6.70.0100.02118.18
5.6.60.0030.01415.74
5.6.50.0060.01015.60
5.6.40.0030.00715.89
5.6.30.0030.01015.76
5.6.20.0040.00715.61
5.6.10.0070.00715.76
5.6.00.0030.01015.95
5.5.380.0090.00315.82
5.5.370.0090.00315.60
5.5.360.0100.00715.73
5.5.350.0070.03818.15
5.5.340.0060.02516.88
5.5.330.0050.04617.89
5.5.320.0180.03318.04
5.5.310.0220.03017.92
5.5.300.0080.03017.02
5.5.290.0120.03216.96
5.5.280.0100.04318.45
5.5.270.0030.02818.43
5.5.260.0100.04218.47
5.5.250.0100.04018.25
5.5.240.0030.03017.99
5.5.230.0030.00715.90
5.5.220.0080.00315.67
5.5.210.0030.01015.85
5.5.200.0060.00615.79
5.5.190.0070.01015.90
5.5.180.0040.01115.54
5.5.170.0040.00815.91
5.5.160.0060.00615.69
5.5.150.0100.01015.76
5.5.140.0070.01015.80
5.5.130.0000.01715.55
5.5.120.0070.01115.36
5.5.110.0040.00815.89
5.5.100.0030.01615.69
5.5.90.0120.00615.77
5.5.80.0070.00715.80
5.5.70.0030.01015.84
5.5.60.0060.00915.65
5.5.50.0040.01415.69
5.5.40.0030.01415.79
5.5.30.0030.01215.84
5.5.20.0030.01015.66
5.5.10.0060.00615.73
5.5.00.0110.00415.54
5.4.450.0170.02923.17
5.4.440.0220.02021.95
5.4.430.0430.02516.01
5.4.420.0110.03020.91
5.4.410.0160.02720.99
5.4.400.0210.02220.88
5.4.390.0230.02120.92
5.4.380.0350.03015.65
5.4.370.0530.03015.47
5.4.360.0520.02915.55
5.4.350.0600.04015.38
5.4.340.0280.03115.62
5.4.330.0000.01012.55
5.4.320.0060.02312.63
5.4.310.0080.02212.60
5.4.300.0050.02412.51
5.4.290.0090.02012.49
5.4.280.0040.02112.52
5.4.270.0060.02112.51
5.4.260.0050.02712.46
5.4.250.0040.02612.49
5.4.240.0050.02212.49
5.4.230.0050.02212.49
5.4.220.0070.02312.54
5.4.210.0050.02212.36
5.4.200.0060.02212.51
5.4.190.0080.02012.44
5.4.180.0080.02012.47
5.4.170.0050.02312.40
5.4.160.0040.02212.43
5.4.150.0080.02112.38
5.4.140.0100.01612.26
5.4.130.0060.01912.27
5.4.120.0080.01612.30
5.4.110.0030.02312.25
5.4.100.0070.02212.27
5.4.90.0070.02412.24
5.4.80.0060.02312.32
5.4.70.0030.02412.21
5.4.60.0070.02212.27
5.4.50.0100.01812.20
5.4.40.0080.01812.30
5.4.30.0060.02212.29
5.4.20.0040.02312.26
5.4.10.0060.01912.17
5.4.00.0050.02112.04
5.3.290.0090.02312.97
5.3.280.0060.02312.89
5.3.270.0070.02612.87
5.3.260.0070.02712.81
5.3.250.0110.02112.88
5.3.240.0050.02512.82
5.3.230.0070.02512.85
5.3.220.0120.02112.72
5.3.210.0080.02312.76
5.3.200.0090.02512.79
5.3.190.0080.02612.86
5.3.180.0090.02512.79
5.3.170.0080.02312.88
5.3.160.0090.02312.88
5.3.150.0100.02012.85
5.3.140.0140.01812.81
5.3.130.0110.02312.73
5.3.120.0090.02412.81
5.3.110.0080.02412.72
5.3.100.0050.02712.54
5.3.90.0090.02212.48
5.3.80.0090.02312.39
5.3.70.0090.02312.53
5.3.60.0090.02312.61
5.3.50.0050.02812.45
5.3.40.0100.02412.37
5.3.30.0080.02212.48
5.3.20.0060.02412.39
5.3.10.0100.02112.29
5.3.00.0090.02412.22
5.2.170.0080.0319.18
5.2.160.0060.0279.18
5.2.150.0030.0329.18
5.2.140.0040.0319.18
5.2.130.0060.0349.14
5.2.120.0060.0279.14
5.2.110.0060.0309.14
5.2.100.0070.0339.14
5.2.90.0050.0299.14
5.2.80.0070.0289.13
5.2.70.0060.0319.14
5.2.60.0030.0329.09
5.2.50.0040.0319.05
5.2.40.0060.0289.03
5.2.30.0030.0319.01
5.2.20.0040.0299.00
5.2.10.0060.0278.93
5.2.00.0050.0288.80
5.1.60.0020.0258.08
5.1.50.0030.0258.07
5.1.40.0030.0258.06
5.1.30.0040.0298.41
5.1.20.0050.0258.43
5.1.10.0040.0268.16
5.1.00.0050.0258.15
5.0.50.0040.0206.63
5.0.40.0090.0216.49
5.0.30.0020.0346.30
5.0.20.0060.0256.27
5.0.10.0040.0206.25
5.0.00.0030.0306.24
4.4.90.0020.0164.78
4.4.80.0010.0174.75
4.4.70.0020.0194.75
4.4.60.0010.0174.76
4.4.50.0030.0234.77
4.4.40.0080.0244.71
4.4.30.0000.0184.76
4.4.20.0040.0154.84
4.4.10.0030.0154.85
4.4.00.0050.0234.76
4.3.110.0000.0184.67
4.3.100.0010.0174.67
4.3.90.0040.0134.63
4.3.80.0050.0274.59
4.3.70.0060.0184.63
4.3.60.0040.0194.63
4.3.50.0040.0144.63
4.3.40.0010.0314.54
4.3.30.0000.0243.29
4.3.20.0030.0193.27
4.3.10.0030.0183.23
4.3.00.0100.01329.26

preferences:
53.62 ms | 400 KiB | 5 Q