3v4l.org

run code in 300+ PHP versions simultaneously
<?php $images = range(1, 36); $perRow = 6; foreach ($images as $i => $image) { if ($i % $perRow === 0) { echo "-- row-open"; } echo sprintf(" [ %d ] ", $image); if (($i + 1) % $perRow === 0) { echo "-- row-close\n"; // check if a another full row exists // if not, break if (!array_key_exists($i + $perRow, $images)) { break; } } }

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.81
8.3.30.0100.00718.94
8.3.20.0040.00420.20
8.3.10.0030.00523.48
8.3.00.0080.00019.38
8.2.170.0150.00022.96
8.2.160.0060.01020.56
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00821.02
8.2.110.0090.00020.43
8.2.100.0060.00618.16
8.2.90.0050.00319.21
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0050.00318.16
8.2.50.0070.00418.07
8.2.40.0070.00018.16
8.2.30.0030.00618.05
8.2.20.0000.00717.76
8.2.10.0000.00718.12
8.2.00.0030.00617.65
8.1.270.0000.00923.82
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.01023.79
8.1.230.0080.00319.14
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0030.00518.61
8.1.160.0000.00721.99
8.1.150.0040.00418.87
8.1.140.0020.00517.49
8.1.130.0000.00717.77
8.1.120.0000.00717.37
8.1.110.0040.00417.35
8.1.100.0000.00717.43
8.1.90.0030.00317.48
8.1.80.0080.00017.43
8.1.70.0030.00517.37
8.1.60.0040.00417.56
8.1.50.0040.00417.45
8.1.40.0040.00417.49
8.1.30.0080.00017.53
8.1.20.0020.00517.66
8.1.10.0000.00717.60
8.1.00.0040.00417.52
8.0.300.0000.00818.77
8.0.290.0050.00216.63
8.0.280.0030.00318.44
8.0.270.0000.00717.17
8.0.260.0060.00017.25
8.0.250.0000.00716.86
8.0.240.0030.00316.95
8.0.230.0000.00716.83
8.0.220.0000.00716.87
8.0.210.0040.00416.81
8.0.200.0000.00616.96
8.0.190.0060.00316.95
8.0.180.0040.00416.93
8.0.170.0040.00416.80
8.0.160.0000.00816.95
8.0.150.0000.00716.81
8.0.140.0070.00016.80
8.0.130.0060.00013.28
8.0.120.0000.00816.88
8.0.110.0070.00016.72
8.0.100.0030.00616.91
8.0.90.0080.00016.91
8.0.80.0080.00816.91
8.0.70.0040.00416.76
8.0.60.0000.00716.95
8.0.50.0050.00216.84
8.0.30.0170.00316.97
8.0.20.0110.01117.40
8.0.10.0040.00416.93
8.0.00.0100.00916.77
7.4.330.0070.00015.00
7.4.320.0030.00316.39
7.4.300.0000.00816.56
7.4.290.0070.00016.42
7.4.280.0080.00016.53
7.4.270.0000.00716.50
7.4.260.0030.00616.47
7.4.250.0050.00316.41
7.4.240.0050.00216.63
7.4.230.0000.00716.34
7.4.220.0100.01016.68
7.4.210.0070.00716.46
7.4.200.0050.00216.62
7.4.160.0100.01016.46
7.4.150.0150.00317.40
7.4.140.0100.00717.86
7.4.130.0130.00616.58
7.4.120.0040.01416.50
7.4.110.0130.00316.36
7.4.100.0130.00316.58
7.4.90.0090.00916.30
7.4.80.0070.01419.39
7.4.70.0130.01016.38
7.4.60.0060.01016.46
7.4.50.0030.00616.38
7.4.40.0130.00516.28
7.4.30.0070.01416.49
7.4.10.0060.01215.18
7.4.00.0020.01614.88
7.3.330.0050.00013.18
7.3.320.0020.00213.00
7.3.310.0000.00816.21
7.3.300.0030.00316.12
7.3.290.0080.01316.27
7.3.280.0080.00916.25
7.3.270.0090.00917.40
7.3.260.0100.00716.32
7.3.250.0090.01116.50
7.3.240.0070.01116.45
7.3.230.0100.00616.39
7.3.210.0000.02016.61
7.3.200.0140.00319.39
7.3.190.0070.01016.30
7.3.180.0030.01216.16
7.3.170.0120.00916.37
7.3.160.0060.01316.44
7.3.130.0100.01014.86
7.3.120.0050.01414.86
7.3.110.0100.00614.61
7.3.100.0000.01614.89
7.3.90.0100.00714.67
7.3.80.0030.00615.00
7.3.70.0000.00814.68
7.3.60.0110.00414.79
7.3.50.0100.00315.02
7.3.40.0030.01014.96
7.3.30.0030.00914.85
7.3.20.0070.01016.72
7.3.10.0090.00316.58
7.3.00.0070.00616.61
7.2.330.0120.00616.40
7.2.320.0080.00816.46
7.2.310.0140.00316.73
7.2.300.0070.01116.66
7.2.290.0000.01616.57
7.2.260.0160.00314.84
7.2.250.0130.00714.64
7.2.240.0110.00414.95
7.2.230.0070.01014.98
7.2.220.0070.00714.93
7.2.210.0030.00615.20
7.2.200.0000.01314.96
7.2.190.0000.01614.89
7.2.180.0110.00714.92
7.2.170.0030.00814.66
7.2.160.0030.01015.04
7.2.150.0130.00316.93
7.2.140.0030.01016.71
7.2.130.0060.00616.91
7.2.120.0050.00916.86
7.2.110.0080.00816.96
7.2.100.0050.01016.90
7.2.90.0080.00516.88
7.2.80.0060.00816.73
7.2.70.0090.00616.95
7.2.60.0030.01216.85
7.2.50.0050.00916.99
7.2.40.0060.00716.99
7.2.30.0040.01017.04
7.2.20.0070.00616.96
7.2.10.0090.00416.95
7.2.00.0060.00617.62
7.1.330.0030.01016.02
7.1.320.0000.01115.88
7.1.310.0050.00515.92
7.1.300.0000.00815.78
7.1.290.0040.01215.92
7.1.280.0000.01015.70
7.1.270.0040.01115.78
7.1.260.0140.00315.73
7.1.250.0040.00815.79
7.1.240.0070.01015.59
7.1.230.0080.00315.94
7.1.220.0000.01415.85
7.1.210.0090.00615.59
7.1.200.0070.00715.85
7.1.190.0080.00815.48
7.1.180.0000.01215.84
7.1.170.0080.00415.85
7.1.160.0030.01015.84
7.1.150.0070.00715.54
7.1.140.0060.00615.65
7.1.130.0000.01215.61
7.1.120.0090.00015.54
7.1.110.0100.00315.73
7.1.100.0020.00816.93
7.1.90.0140.00015.86
7.1.80.0060.00915.87
7.1.70.0070.00416.43
7.1.60.0070.00917.60
7.1.50.0050.01216.37
7.1.40.0070.00315.97
7.1.30.0040.00715.78
7.1.20.0000.01515.60
7.1.10.0030.01015.71
7.1.00.0110.03719.11
7.0.330.0060.00615.61
7.0.320.0060.00915.44
7.0.310.0070.00715.40
7.0.300.0000.01515.36
7.0.290.0080.00315.54
7.0.280.0000.01115.38
7.0.270.0070.00715.48
7.0.260.0050.00415.23
7.0.250.0070.00715.60
7.0.240.0100.00715.54
7.0.230.0090.00315.57
7.0.220.0000.01115.42
7.0.210.0050.00515.56
7.0.200.0050.00516.15
7.0.190.0040.00415.48
7.0.180.0100.00315.54
7.0.170.0030.00915.38
7.0.160.0040.00415.50
7.0.150.0090.00015.54
7.0.140.0070.03718.75
7.0.130.0030.00715.50
7.0.120.0030.00515.39
7.0.110.0000.01215.56
7.0.100.0060.00315.50
7.0.90.0030.01015.50
7.0.80.0070.00715.14
7.0.70.0060.00615.60
7.0.60.0130.04118.50
7.0.50.0150.03316.58
7.0.40.0100.04017.00
7.0.30.0120.02916.71
7.0.20.0150.03016.88
7.0.10.0070.04516.77
7.0.00.0110.04316.85
5.6.400.0030.00914.58
5.6.390.0080.00414.32
5.6.380.0100.00314.57
5.6.370.0040.01114.45
5.6.360.0030.01014.57
5.6.350.0030.00614.65
5.6.340.0070.00714.45
5.6.330.0070.00714.53
5.6.320.0030.01014.73
5.6.310.0040.01114.34
5.6.300.0030.01014.36
5.6.290.0110.00014.13
5.6.280.0000.01614.43
5.6.270.0080.00414.53
5.6.260.0030.01014.44
5.6.250.0040.00414.16
5.6.240.0100.00314.10
5.6.230.0070.00714.42
5.6.220.0060.00614.18
5.6.210.0080.03817.54
5.6.200.0090.02016.39
5.6.190.0140.02517.50
5.6.180.0190.03917.19
5.6.170.0310.03617.53
5.6.160.0080.03317.22
5.6.150.0090.03416.22
5.6.140.0100.03516.23
5.6.130.0120.03716.30
5.6.120.0070.04717.78
5.6.110.0080.04517.61
5.6.100.0050.04517.86
5.6.90.0080.03517.62
5.6.80.0030.03317.40
5.6.70.0060.00614.08
5.6.60.0030.01014.07
5.6.50.0060.00614.35
5.6.40.0040.00414.35
5.6.30.0000.00914.41
5.6.20.0080.00614.14
5.6.10.0040.01114.18
5.6.00.0030.00814.15
5.5.380.0040.00814.26
5.5.370.0060.00614.39
5.5.360.0030.00814.23
5.5.350.2010.02017.52
5.5.340.0070.04316.25
5.5.330.0030.02517.06
5.5.320.0240.03817.21
5.5.310.0150.03817.36
5.5.300.0020.04915.90
5.5.290.0100.04016.11
5.5.280.0070.04217.65
5.5.270.0080.04517.29
5.5.260.0100.04517.51
5.5.250.0090.04617.32
5.5.240.0100.04417.23
5.5.230.0000.01414.23
5.5.220.0030.01014.15
5.5.210.0000.00813.93
5.5.200.0080.00414.23
5.5.190.0030.01014.11
5.5.180.0100.00614.33
5.5.170.0030.00614.22
5.5.160.0030.01014.12
5.5.150.0030.01014.25
5.5.140.0070.01014.04
5.5.130.0100.00313.91
5.5.120.0100.00714.21
5.5.110.0030.00714.38
5.5.100.0100.00713.98
5.5.90.0000.01514.40
5.5.80.0030.01014.09
5.5.70.0000.01014.02
5.5.60.0000.01314.01
5.5.50.0000.01013.94
5.5.40.0070.00713.73
5.5.30.0030.00614.20
5.5.20.0060.00613.82
5.5.10.0090.00314.36
5.5.00.0140.00014.00
5.4.450.0080.02515.24
5.4.440.0100.02015.17
5.4.430.0070.02715.25
5.4.420.0080.02315.16
5.4.410.0120.02215.16
5.4.400.0040.02714.94
5.4.390.0090.02415.10
5.4.380.0070.03514.63
5.4.370.0050.03614.94
5.4.360.0110.02514.77
5.4.350.0050.03414.86
5.4.340.0140.02614.82
5.4.330.0100.00010.95
5.4.320.0060.01911.76
5.4.310.0040.02411.71
5.4.300.0080.01811.68
5.4.290.0040.02711.69
5.4.280.0060.02011.54
5.4.270.0040.02111.64
5.4.260.0060.02211.72
5.4.250.0030.02411.64
5.4.240.0040.02411.74
5.4.230.0050.02811.54
5.4.220.0050.02311.60
5.4.210.0070.01911.54
5.4.200.0050.02511.54
5.4.190.0070.02411.68
5.4.180.0060.02211.60
5.4.170.0090.01811.54
5.4.160.0050.02111.63
5.4.150.0040.02011.69
5.4.140.0090.01811.51
5.4.130.0070.01811.52
5.4.120.0040.02111.45
5.4.110.0060.01811.48
5.4.100.0070.01911.47
5.4.90.0080.02111.47
5.4.80.0050.02011.58
5.4.70.0040.01911.55
5.4.60.0040.02011.46
5.4.50.0060.01811.54
5.4.40.0050.02011.36
5.4.30.0060.02111.54
5.4.20.0040.02311.46
5.4.10.0030.02011.52
5.4.00.0050.01911.17
5.3.290.0120.03312.80
5.3.280.0090.03412.71
5.3.270.0060.03812.72
5.3.260.0080.03612.72
5.3.250.0050.03812.72
5.3.240.0050.03912.72
5.3.230.0090.03512.71
5.3.220.0070.03712.68
5.3.210.0050.04512.68
5.3.200.0040.03912.68
5.3.190.0090.03512.68
5.3.180.0050.03712.67
5.3.170.0080.03412.67
5.3.160.0080.03412.67
5.3.150.0060.03712.68
5.3.140.0100.03212.66
5.3.130.0090.04412.66
5.3.120.0050.04012.66
5.3.110.0100.03612.66
5.3.100.0050.04012.12
5.3.90.0060.03712.08
5.3.80.0060.03912.07
5.3.70.0070.03512.07
5.3.60.0070.03512.06
5.3.50.0040.03912.00
5.3.40.0070.03612.00
5.3.30.0060.03411.95
5.3.20.0060.03511.73
5.3.10.0060.03411.69
5.3.00.0090.04011.68
5.2.170.0070.0289.18
5.2.160.0040.0309.18
5.2.150.0080.0289.18
5.2.140.0040.0319.18
5.2.130.0050.0299.14
5.2.120.0070.0269.13
5.2.110.0040.0309.15
5.2.100.0070.0279.14
5.2.90.0050.0309.14
5.2.80.0070.0289.14
5.2.70.0090.0289.14
5.2.60.0060.0299.09
5.2.50.0040.0319.06
5.2.40.0060.0319.03
5.2.30.0030.0319.01
5.2.20.0050.0299.00
5.2.10.0080.0268.92
5.2.00.0080.0288.79
5.1.60.0080.0308.07
5.1.50.0050.0348.06
5.1.40.0080.0328.05
5.1.30.0080.0238.39
5.1.20.0050.0258.41
5.1.10.0050.0278.14
5.1.00.0070.0228.14
5.0.50.0050.0196.62
5.0.40.0040.0196.48
5.0.30.0050.0306.29
5.0.20.0040.0186.27
5.0.10.0040.0196.24
5.0.00.0020.0326.24
4.4.90.0010.0174.78
4.4.80.0020.0164.75
4.4.70.0040.0194.76
4.4.60.0060.0144.75
4.4.50.0010.0194.77
4.4.40.0060.0334.71
4.4.30.0020.0214.76
4.4.20.0030.0204.84
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0154.66
4.3.90.0030.0144.64
4.3.80.0030.0244.59
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0040.0174.63
4.3.40.0020.0254.54
4.3.30.0030.0153.29
4.3.20.0020.0193.26
4.3.10.0030.0153.22
4.3.00.0000.02314.87

preferences:
46.51 ms | 400 KiB | 5 Q