3v4l.org

run code in 300+ PHP versions simultaneously
<?php unction 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)
5.6.120.0100.08021.04
5.6.110.0170.07720.98
5.6.100.0070.07321.08
5.6.90.0100.08021.00
5.6.80.0130.03320.46
5.5.280.0070.07320.68
5.5.270.0030.08020.75
5.5.260.0100.08320.86
5.5.250.0070.08320.57
5.5.240.0270.07720.14
5.4.440.0430.05319.16
5.4.430.0100.05319.33
5.4.420.0330.04019.58
5.4.410.0700.05719.46
5.4.400.0830.05019.23
5.4.390.0130.05019.28
5.4.380.0070.06019.26
5.4.370.0500.05019.14
5.4.360.0700.06319.14
5.4.350.0730.05019.25
5.4.340.0900.05019.12
5.4.320.0830.06719.34
5.4.310.0900.05719.29
5.4.300.0830.05319.27
5.4.290.0800.06319.25
5.4.280.0870.06019.06
5.4.270.0930.05719.27
5.4.260.0870.06018.86
5.4.250.0500.06719.27
5.4.240.0770.05719.13
5.4.230.1100.05718.95
5.4.220.0730.07319.12
5.4.210.0870.05718.91
5.4.200.0730.06716.91
5.4.190.0830.05719.00
5.4.180.0700.04719.00
5.4.170.0970.08019.28
5.4.160.0730.04018.96
5.4.150.0870.05718.95
5.4.140.0830.05316.45
5.4.130.0600.05716.55
5.4.120.1100.04316.30
5.4.110.0800.05016.34
5.4.100.0830.05316.70
5.4.90.0830.04316.44
5.4.80.0570.05716.32
5.4.70.0670.05016.41
5.4.60.0600.05716.38
5.4.50.0870.06716.46
5.4.40.0630.05716.31
5.4.30.0730.04716.49
5.4.20.0670.05016.30
5.4.10.0630.05016.68
5.4.00.0970.06016.17
5.3.290.0870.06014.65
5.3.280.0770.07014.54
5.3.270.0830.06714.62
5.3.260.0800.04314.72
5.3.250.0870.04314.59
5.3.240.0900.06314.62
5.3.230.0930.06014.39
5.3.220.0830.08014.55
5.3.210.0700.08314.36
5.3.200.0900.05014.66
5.3.190.1130.07314.52
5.3.180.0970.07714.45
5.3.170.1200.05714.40
5.3.160.0800.06014.55
5.3.150.0730.05314.42
5.3.140.0770.05014.65
5.3.130.0900.07014.39
5.3.120.0800.05714.34
5.3.110.0870.05714.64
5.3.100.0830.06014.14
5.3.90.0870.05313.87
5.3.80.0900.05013.96
5.3.70.0700.06713.89
5.3.60.0970.07313.79
5.3.50.0870.05713.72
5.3.40.0900.05013.71
5.3.30.0700.05713.71
5.3.20.0730.06313.52
5.3.10.0670.05313.52
5.3.00.1000.05013.58
5.2.170.0630.05710.99
5.2.160.1070.04711.00
5.2.150.0770.05311.16
5.2.140.0670.06711.08
5.2.130.0670.06311.04
5.2.120.0670.05711.26
5.2.110.0870.05711.04
5.2.100.0730.06010.94
5.2.90.0630.05711.18
5.2.80.0930.04310.92
5.2.70.0600.05310.95
5.2.60.0700.03711.09
5.2.50.0630.05010.86
5.2.40.0630.04310.88
5.2.30.0630.04310.83
5.2.20.0670.03310.89
5.2.10.0730.03310.86
5.2.00.0530.04310.67
5.1.60.0630.0439.96
5.1.50.0470.0409.91
5.1.40.0570.0479.91
5.1.30.0770.03710.23
5.1.20.0800.04010.25
5.1.10.0630.0379.93
5.1.00.0570.05010.23
5.0.50.0430.0378.56
5.0.40.0200.0338.33
5.0.30.0330.0508.30
5.0.20.0370.0238.26
5.0.10.0200.0438.14
5.0.00.0430.0538.03
4.4.90.0400.0305.81
4.4.80.0270.0275.79
4.4.70.0370.0275.82
4.4.60.0370.0305.78
4.4.50.0370.0305.84
4.4.40.0430.0375.80
4.4.30.0200.0275.84
4.4.20.0300.0375.85
4.4.10.0230.0305.90
4.4.00.0370.0305.79
4.3.110.0270.0305.76
4.3.100.0170.0235.76
4.3.90.0270.0175.73
4.3.80.0230.0375.73
4.3.70.0330.0175.78
4.3.60.0300.0235.85
4.3.50.0200.0235.67
4.3.40.0300.0335.62
4.3.30.0130.0174.50
4.3.20.0070.0334.49
4.3.10.0200.0234.48
4.3.00.0030.0277.30

preferences:
128.45 ms | 1398 KiB | 7 Q