3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<pre>\n"; $n=4; $max_length = $n * 2 - 1; for ($i = 1; $i <= $n * 2 - 1; $i++) { $this_n = ($i <= $n) ? $i : $n * 2 - $i; $num_ns = $this_n * 2 - 1; echo str_repeat(' ', ($max_length - $num_ns) / 2); echo str_repeat("$this_n", $num_ns); echo "\n"; } echo '</pre>';

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.4.20.0070.01418.89
8.4.10.0060.00317.51
8.3.150.0070.01116.70
8.3.140.0000.01516.68
8.3.130.0030.00616.54
8.3.120.0040.00418.97
8.3.110.0050.00520.94
8.3.100.0110.00416.49
8.3.90.0110.00026.77
8.3.80.0030.00616.63
8.3.70.0070.01418.31
8.3.60.0140.00018.30
8.3.50.0060.01017.43
8.3.40.0120.00918.64
8.3.30.0090.01318.54
8.3.20.0080.00020.48
8.3.10.0070.00020.16
8.3.00.0040.00423.36
8.2.270.0090.00916.50
8.2.260.0120.00316.87
8.2.250.0000.00816.61
8.2.240.0060.00317.21
8.2.230.0060.00922.58
8.2.220.0040.00424.06
8.2.210.0070.00726.77
8.2.200.0030.00616.75
8.2.190.0070.00716.58
8.2.180.0090.00618.42
8.2.170.0080.01122.96
8.2.160.0030.01120.34
8.2.150.0030.00624.18
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0050.00319.66
8.2.110.0000.01022.08
8.2.100.0040.00819.51
8.2.90.0000.00917.63
8.2.80.0000.00818.79
8.2.70.0040.00417.50
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0000.00818.09
8.2.30.0070.00317.96
8.2.20.0040.00417.95
8.2.10.0000.00719.31
8.2.00.0070.00019.16
8.1.310.0070.01016.83
8.1.300.0000.01417.59
8.1.290.0040.00430.84
8.1.280.0140.00725.92
8.1.270.0050.00520.69
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00020.84
8.1.230.0030.00717.71
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00917.25
8.1.190.0090.00017.22
8.1.180.0030.00618.10
8.1.170.0040.00418.47
8.1.160.0040.00418.71
8.1.150.0030.00518.81
8.1.140.0040.00420.94
8.1.130.0070.00020.13
8.1.120.0030.00717.35
8.1.110.0000.00917.36
8.1.100.0060.00317.28
8.1.90.0070.00017.30
8.1.80.0040.00417.41
8.1.70.0030.00317.54
8.1.60.0050.00317.50
8.1.50.0070.00017.43
8.1.40.0040.00417.52
8.1.30.0040.00417.68
8.1.20.0060.00317.49
8.1.10.0060.00317.42
8.1.00.0030.00517.50
8.0.300.0110.00018.77
8.0.290.0060.00316.63
8.0.280.0000.00718.33
8.0.270.0000.00717.34
8.0.260.0030.00319.96
8.0.250.0080.00016.93
8.0.240.0000.00817.02
8.0.230.0070.00016.86
8.0.220.0030.00316.93
8.0.210.0040.00416.85
8.0.200.0060.00016.86
8.0.190.0080.00016.88
8.0.180.0040.00416.82
8.0.170.0070.00316.75
8.0.160.0050.00316.95
8.0.150.0030.00516.77
8.0.140.0030.00316.69
8.0.130.0000.00513.28
8.0.120.0000.00716.81
8.0.110.0040.00416.82
8.0.100.0040.00416.88
8.0.90.0050.00316.73
8.0.80.0110.00416.82
8.0.70.0000.00716.62
8.0.60.0040.00416.84
8.0.50.0040.00416.72
8.0.30.0090.01217.10
8.0.20.0050.01817.14
8.0.10.0030.00416.92
8.0.00.0110.00916.69
7.4.330.0020.00216.66
7.4.320.0060.00016.55
7.4.300.0080.00016.58
7.4.290.0030.00316.58
7.4.280.0080.00316.55
7.4.270.0070.00316.48
7.4.260.0000.00513.30
7.4.250.0000.00716.57
7.4.240.0040.00416.51
7.4.230.0000.00716.33
7.4.220.0020.00516.41
7.4.210.0110.00316.58
7.4.200.0070.00016.37
7.4.140.0130.00417.86
7.4.130.0110.00716.61
7.4.120.0140.01016.46
7.4.110.0150.00616.60
7.4.100.0290.02616.66
7.4.90.0060.01016.57
7.4.80.0040.01419.39
7.4.70.0040.01716.52
7.4.60.0100.00716.42
7.4.50.0100.00716.59
7.4.40.0040.01216.53
7.4.10.0100.00714.77
7.4.00.0040.01014.84
7.3.330.0000.00716.18
7.3.320.0030.00313.21
7.3.310.0070.00016.25
7.3.300.0030.00316.30
7.3.290.0000.00716.27
7.3.280.0060.01016.28
7.3.260.0070.01016.48
7.3.230.0070.01016.59
7.3.210.0150.00916.43
7.3.200.0150.00816.32
7.3.190.0060.01316.32
7.3.180.0100.01016.32
7.3.170.0120.01216.27
7.3.160.0040.01216.59
7.3.130.0140.00414.82
7.3.120.0060.01215.12
7.3.110.0040.01514.83
7.3.100.0100.00714.86
7.3.90.0060.00915.02
7.3.80.0030.00914.74
7.3.70.0060.00814.64
7.3.60.0030.01014.64
7.3.50.0060.00614.81
7.3.40.0070.00514.88
7.3.30.0060.01114.73
7.3.20.0060.00916.60
7.3.10.0080.00616.71
7.3.00.0050.00716.70
7.2.330.0140.01016.73
7.2.320.0100.01016.63
7.2.310.0070.01016.55
7.2.300.0120.00416.56
7.2.290.0130.00316.86
7.2.260.0110.00714.64
7.2.250.0110.00415.21
7.2.240.0080.00814.94
7.2.230.0100.00714.69
7.2.220.0110.00715.02
7.2.210.0050.00514.81
7.2.200.0050.00615.04
7.2.190.0070.00714.98
7.2.180.0060.00614.98
7.2.170.0040.01114.79
7.2.160.0020.01114.90
7.2.150.0080.00516.94
7.2.140.0060.00616.70
7.2.130.0060.00816.81
7.2.120.0080.00616.94
7.2.110.0120.00016.88
7.2.100.0100.00417.01
7.2.90.0080.00916.88
7.2.80.0100.00316.77
7.2.70.0060.00716.64
7.2.60.0030.01016.93
7.2.50.0100.00516.80
7.2.40.0070.00717.05
7.2.30.0050.01016.71
7.2.20.0050.00716.79
7.2.10.0100.00616.84
7.2.00.0070.00616.85
7.1.330.0040.00715.69
7.1.320.0030.01415.87
7.1.310.0090.00515.79
7.1.300.0070.00715.79
7.1.290.0040.00815.66
7.1.280.0070.01015.69
7.1.270.0070.00715.54
7.1.260.0060.00715.70
7.1.250.0060.00515.80
7.1.240.0090.00615.99
7.1.230.0070.00315.71
7.1.220.0000.01215.86
7.1.210.0070.00715.78
7.1.200.0040.00415.53
7.1.190.0070.00715.44
7.1.180.0040.00415.91
7.1.170.0080.00015.56
7.1.160.0060.00615.59
7.1.150.0040.01115.78
7.1.140.0040.01215.76
7.1.130.0060.00315.92
7.1.120.0100.00315.83
7.1.110.0090.00615.70
7.1.100.0090.00915.99
7.1.90.0000.01315.75
7.1.80.0060.00615.68
7.1.70.0040.00815.83
7.1.60.0110.00615.81
7.1.50.0050.00815.78
7.1.40.0100.00715.84
7.1.30.0040.00815.77
7.1.20.0080.00415.58
7.1.10.0070.00315.78
7.1.00.0030.00915.81

preferences:
34.89 ms | 403 KiB | 5 Q