3v4l.org

run code in 300+ PHP versions simultaneously
<?php function create_pyramid($limit) { for($row = 1; $row < $limit; $row ++) { $stars = str_repeat('*', ($row - 1) * 2 + 1); $space = str_repeat(' ', $limit - $row); echo $space . $stars . '<br/>'; } } echo "<pre>" ; create_pyramid(10);

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.0070.00718.55
8.3.60.0070.00718.30
8.3.50.0110.00921.10
8.3.40.0140.00718.85
8.3.30.0220.00019.04
8.3.20.0140.00320.20
8.3.10.0130.00723.71
8.3.00.0050.00322.26
8.2.180.0100.01316.50
8.2.170.0140.00722.96
8.2.160.0090.00622.30
8.2.150.0100.01025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0050.00521.24
8.2.100.0090.00317.84
8.2.90.0060.00317.72
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0070.00018.04
8.2.50.0060.00318.07
8.2.40.0000.00820.89
8.2.30.0040.00417.97
8.2.20.0030.00617.68
8.2.10.0000.00718.11
8.2.00.0000.00818.16
8.1.280.0140.01125.92
8.1.270.0080.00820.38
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00622.60
8.1.230.0070.00320.93
8.1.220.0060.00317.79
8.1.210.0050.00318.99
8.1.200.0030.00617.22
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0050.00318.68
8.1.160.0070.00022.01
8.1.150.0040.00418.80
8.1.140.0000.00817.45
8.1.130.0030.00317.68
8.1.120.0030.00317.49
8.1.110.0030.00517.45
8.1.100.0000.00717.33
8.1.90.0040.00417.47
8.1.80.0020.00517.34
8.1.70.0040.00417.42
8.1.60.0040.00417.46
8.1.50.0030.00617.51
8.1.40.0000.00817.57
8.1.30.0030.00617.51
8.1.20.0040.00417.66
8.1.10.0030.00617.52
8.1.00.0040.00417.33
8.0.300.0050.00320.04
8.0.290.0050.00216.75
8.0.280.0000.00718.35
8.0.270.0030.00317.29
8.0.260.0040.00417.23
8.0.250.0050.00216.86
8.0.240.0060.00016.99
8.0.230.0080.00216.97
8.0.220.0000.00716.90
8.0.210.0000.00716.75
8.0.200.0000.00716.96
8.0.190.0040.00416.92
8.0.180.0040.00416.79
8.0.170.0070.00016.91
8.0.160.0080.00016.85
8.0.150.0030.00616.88
8.0.140.0040.00416.80
8.0.130.0060.00013.25
8.0.120.0080.00016.89
8.0.110.0090.00016.84
8.0.100.0050.00316.79
8.0.90.0000.00716.91
8.0.80.0110.00416.88
8.0.70.0050.00216.88
8.0.60.0000.00716.87
8.0.50.0000.00716.77
8.0.30.0130.00617.13
8.0.20.0120.01117.40
8.0.10.0070.00016.89
8.0.00.0080.01216.77
7.4.330.0070.00015.08
7.4.320.0040.00416.48
7.4.300.0000.00616.48
7.4.290.0030.00316.50
7.4.280.0070.00016.55
7.4.270.0070.00016.46
7.4.260.0070.00016.46
7.4.250.0040.00416.57
7.4.240.0040.00316.51
7.4.230.0040.00416.58
7.4.220.0070.01116.54
7.4.210.0180.00316.68
7.4.200.0070.00016.58
7.4.160.0080.00816.45
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0140.00416.48
7.4.120.0110.00816.46
7.4.110.0130.00316.62
7.4.100.0070.01116.61
7.4.90.0100.00716.53
7.4.80.0080.00819.39
7.4.70.0030.01316.50
7.4.60.0060.01116.50
7.4.50.0050.00316.18
7.4.40.0100.01416.41
7.4.30.0090.00916.57
7.4.00.0060.01015.14
7.3.330.0000.00513.12
7.3.320.0020.00213.14
7.3.310.0030.00316.32
7.3.300.0030.00316.34
7.3.290.0080.01116.27
7.3.280.0060.01016.31
7.3.270.0090.00917.40
7.3.260.0050.01116.56
7.3.250.0110.00616.45
7.3.240.0100.00716.37
7.3.230.0120.00616.45
7.3.210.0000.01616.63
7.3.200.0120.00416.66
7.3.190.0050.01116.71
7.3.180.0090.00616.55
7.3.170.0100.00616.39
7.3.160.0100.01016.36
7.3.120.0030.01014.87
7.3.110.0000.01814.80
7.3.100.0080.00814.68
7.3.90.0030.00614.91
7.3.80.0080.00814.76
7.3.70.0000.01114.67
7.3.60.0040.01214.93
7.3.50.0000.01014.82
7.3.40.0030.00914.95
7.3.30.0030.01014.64
7.3.20.0110.00416.64
7.3.10.0070.00716.73
7.3.00.0030.01116.67
7.2.330.0120.00616.79
7.2.320.0150.00316.48
7.2.310.0100.00716.45
7.2.300.0090.00916.61
7.2.290.0080.01316.57
7.2.240.0100.01015.01
7.2.230.0070.01014.96
7.2.220.0060.00314.90
7.2.210.0030.01314.74
7.2.200.0070.00314.79
7.2.190.0110.00415.17
7.2.180.0030.00915.12
7.2.170.0030.01014.80
7.2.160.0000.01015.08
7.2.150.0000.01716.92
7.2.140.0110.00416.96
7.2.130.0060.00816.78
7.2.120.0070.00716.99
7.2.110.0090.00516.93
7.2.100.0090.00316.85
7.2.90.0070.00516.84
7.2.80.0050.01116.96
7.2.70.0090.00716.81
7.2.60.0110.00616.95
7.2.50.0040.00916.87
7.2.40.0030.00816.98
7.2.30.0060.00816.99
7.2.20.0070.00616.98
7.2.10.0100.00517.00
7.2.00.0040.00917.78
7.1.330.0030.00815.63
7.1.320.0040.00415.50
7.1.310.0130.00315.70
7.1.300.0080.00015.89
7.1.290.0070.00715.95
7.1.280.0030.00715.90
7.1.270.0050.00515.75
7.1.260.0040.00815.86
7.1.250.0050.00815.87
7.1.200.0070.00315.62
7.1.100.0030.01218.38
7.1.70.0070.00717.35
7.1.60.0080.00819.42
7.1.50.0170.00717.02
7.1.00.0070.07322.31
7.0.200.0100.00514.80
7.0.60.0070.06319.78
7.0.50.0000.04317.85
7.0.40.0070.04320.41
7.0.30.0100.04720.34
7.0.20.0200.08720.30
7.0.10.0130.08020.16
7.0.00.0200.05720.10
5.6.210.0200.06720.48
5.6.200.0100.07718.16
5.6.190.0070.04020.77
5.6.180.0530.07720.77
5.6.170.0200.04720.47
5.6.160.0030.07020.57
5.6.150.0070.06318.28
5.6.140.0070.07018.21
5.6.130.0100.06318.18
5.6.120.0100.08320.97
5.6.110.0130.07721.02
5.6.100.0100.05321.11
5.6.90.0130.05720.98
5.6.80.0000.05020.40
5.5.350.0070.07320.44
5.5.340.0100.07718.10
5.5.330.0030.04320.43
5.5.320.0030.08720.30
5.5.310.0200.07720.25
5.5.300.0100.07717.95
5.5.290.0100.07718.00
5.5.280.0100.08020.89
5.5.270.0100.07320.67
5.5.260.0100.06320.84
5.5.250.0130.09320.79
5.5.240.0100.06720.04
5.4.450.0500.06719.40
5.4.440.0600.07019.38
5.4.430.1070.06019.56
5.4.420.0970.08019.57
5.4.410.1300.06719.47
5.4.400.0800.06019.13
5.4.390.0900.06018.86
5.4.380.0870.05719.14
5.4.370.0730.06719.27
5.4.360.1100.04019.13
5.4.350.1070.06719.13
5.4.340.0900.05019.13
5.4.320.0900.07319.15
5.4.310.0700.05318.84
5.4.300.0970.06018.83
5.4.290.1100.06319.26
5.4.280.0830.07018.86
5.4.270.0900.06319.29
5.4.260.0970.07719.18
5.4.250.1070.07318.96
5.4.240.1030.06319.27
5.4.230.0730.07719.25
5.4.220.1100.05719.10
5.4.210.0900.05718.91
5.4.200.0670.06716.88
5.4.190.0900.05719.00
5.4.180.0830.06719.13
5.4.170.1000.06319.16
5.4.160.1070.03719.09
5.4.150.1030.06719.32
5.4.140.0970.06016.43
5.4.130.1070.07316.53
5.4.120.0970.06016.39
5.4.110.0930.06016.50
5.4.100.0900.05716.34
5.4.90.0930.06316.44
5.4.80.1100.06316.28
5.4.70.1230.06016.39
5.4.60.1170.05316.52
5.4.50.0830.05016.47
5.4.40.1000.05016.41
5.4.30.0700.05316.30
5.4.20.0900.04316.36
5.4.10.0970.05016.50
5.4.00.0800.06316.16
5.3.290.1000.05314.57
5.3.280.0930.05014.64
5.3.270.0870.05314.51
5.3.260.0900.05314.50
5.3.250.0900.05314.69
5.3.240.0970.05714.83
5.3.230.0930.04714.50
5.3.220.0730.05314.48
5.3.210.0830.07014.56
5.3.200.0800.05014.55
5.3.190.0900.04714.47
5.3.180.0900.05014.44
5.3.170.0870.05014.79
5.3.160.0930.04314.64
5.3.150.0930.06014.61
5.3.140.0870.05014.56
5.3.130.0830.06014.46
5.3.120.0870.06014.45
5.3.110.0800.06014.60
5.3.100.0770.05714.00
5.3.90.1070.04313.93
5.3.80.1000.05714.02
5.3.70.1100.06713.92
5.3.60.1000.05313.91
5.3.50.0970.05313.95
5.3.40.0830.05314.00
5.3.30.0930.04013.91
5.3.20.0870.05013.59
5.3.10.0900.04713.66
5.3.00.0730.04713.53
5.2.170.0670.04311.21
5.2.160.0570.04011.05
5.2.150.0770.04711.07
5.2.140.0570.04311.36
5.2.130.0670.04311.02
5.2.120.0630.04711.11
5.2.110.0770.03711.15
5.2.100.0700.04011.12
5.2.90.0730.03711.02
5.2.80.0730.04011.00
5.2.70.0670.04711.00
5.2.60.0630.04711.06
5.2.50.0700.04010.93
5.2.40.0630.03710.92
5.2.30.0530.04710.89
5.2.20.0600.03711.01
5.2.10.0470.04710.77
5.2.00.0430.04010.72
5.1.60.0470.0339.91
5.1.50.0500.0339.91
5.1.40.0400.0409.88
5.1.30.0570.02310.27
5.1.20.0630.03710.36
5.1.10.0530.0379.99
5.1.00.0400.0439.99
5.0.50.0330.0408.77
5.0.40.0230.0438.41
5.0.30.0300.0408.22
5.0.20.0300.0208.25
5.0.10.0330.0278.17
5.0.00.0200.0478.14
4.4.90.0300.0305.81
4.4.80.0300.0205.80
4.4.70.0270.0235.82
4.4.60.0300.0205.82
4.4.50.0270.0205.78
4.4.40.0270.0335.75
4.4.30.0300.0205.88
4.4.20.0230.0275.81
4.4.10.0230.0275.89
4.4.00.0200.0375.86
4.3.110.0300.0235.80
4.3.100.0200.0235.70
4.3.90.0270.0175.73
4.3.80.0230.0335.77
4.3.70.0230.0235.76
4.3.60.0330.0275.74
4.3.50.0230.0235.75
4.3.40.0270.0375.64
4.3.30.0170.0304.61
4.3.20.0200.0204.51
4.3.10.0130.0234.54
4.3.00.0130.0207.30

preferences:
63.02 ms | 401 KiB | 5 Q