3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterations = isset($argv[1]) && $argv[1] >= 8 && $argv[1] <= 90 ? $argv[1] : 12; $a = ""; for ($i = 1; $i < $iterations; $i++) { $a .= str_pad("", $iterations-$i-1); for ($j = 0; $j < ($i * 2)-1; $j++) { $a .= $i == 1 ? ("\033[0;33m*\033[0;32m") : (mt_rand(0, 100 / ($i < 6 ? 5 : $i)) == 1 ? ("\033[0;3" . mt_rand(1, 6) . "mo\033[0;32m") : ("^")); $a .= "\n"; } $a .= "\033[0;33m" . str_repeat(str_pad("", $iterations-($iterations / 5)) . str_repeat(".", ($iterations/5)) . "\n", ($iterations/8))."\033[0m"; } print $a;

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)
7.2.00.0060.00619.24
7.1.70.0000.00817.22
7.1.60.0100.01319.40
7.1.50.0090.01216.68
7.1.00.0070.07022.37
7.0.200.0030.00616.61
7.0.140.0000.07722.07
7.0.60.0030.04021.84
7.0.50.0070.08017.84
7.0.40.0130.08020.41
7.0.30.0130.04720.18
7.0.20.0370.07020.13
7.0.10.0170.08020.19
7.0.00.0030.09020.08
5.6.280.0000.07320.99
5.6.210.0100.08320.70
5.6.200.0100.04318.17
5.6.190.0170.08020.35
5.6.180.0430.07720.60
5.6.170.0330.07720.42
5.6.160.0030.05720.38
5.6.150.0000.05718.21
5.6.140.0000.09018.12
5.6.130.0000.07018.17
5.6.120.0000.04720.84
5.6.110.0100.09021.00
5.6.100.0130.07321.09
5.6.90.0170.07321.13
5.6.80.0070.03720.34
5.5.350.3630.03720.47
5.5.340.0100.07717.93
5.5.330.0030.08320.36
5.5.320.0670.07720.34
5.5.310.0200.05720.13
5.5.300.0170.07317.97
5.5.290.0100.03317.98
5.5.280.0100.04720.98
5.5.270.0070.03720.88
5.5.260.0030.08320.96
5.5.250.0030.08320.69
5.5.240.0170.05320.04
5.4.450.2030.03019.41
5.4.440.1770.04019.10
5.4.430.2200.03719.48
5.4.420.2030.04319.40
5.4.410.2000.04719.32
5.4.400.2070.03319.25
5.4.390.0100.07019.08
5.4.380.0130.07018.93
5.4.370.0900.04019.09
5.4.360.2100.04018.93
5.4.350.1800.04018.77
5.4.340.2230.04319.16
5.4.320.2370.03718.81
5.4.310.2070.04319.12
5.4.300.1870.04018.91
5.4.290.1870.03718.88
5.4.280.2070.04019.08
5.4.270.2000.04018.93
5.4.260.1870.03719.24
5.4.250.2130.05019.23
5.4.240.1830.03719.07
5.4.230.2030.04319.21
5.4.220.1930.03319.07
5.4.210.2100.04719.23
5.4.200.2030.04719.20
5.4.190.1870.03719.07
5.4.180.0230.04019.06
5.4.170.0030.03718.77
5.4.160.0070.03318.94
5.4.150.1130.05018.86
5.4.140.2300.03316.16
5.4.130.1830.03716.16
5.4.120.2000.03016.43
5.4.110.1930.03316.31
5.4.100.1730.03716.42
5.4.90.2270.04316.39
5.4.80.2230.04716.17
5.4.70.2000.03316.20
5.4.60.0900.03316.38
5.4.50.0000.03716.18
5.4.40.0000.04016.19
5.4.30.0170.03316.28
5.4.20.1500.03716.38
5.4.10.1600.04016.36
5.4.00.1930.03315.74
5.3.290.1800.03714.55
5.3.280.2070.02014.45
5.3.270.1970.03314.48
5.3.260.1830.03714.71
5.3.250.1830.03714.57
5.3.240.1800.03714.48
5.3.230.1800.03714.48
5.3.220.1870.03014.62
5.3.210.2200.05014.62
5.3.200.1870.04014.52
5.3.190.1900.04314.42
5.3.180.2030.04014.43
5.3.170.1830.04014.62
5.3.160.2100.03714.52
5.3.150.2030.03314.43
5.3.140.2030.04014.44
5.3.130.1970.04714.41
5.3.120.2030.04314.39
5.3.110.2030.04314.60
5.3.100.2070.04014.06
5.3.90.2000.04314.07
5.3.80.2100.03714.00
5.3.70.2070.03713.96
5.3.60.1930.04713.86
5.3.50.2030.04013.82
5.3.40.1430.04313.93
5.3.30.0070.07013.88
5.3.20.0070.04313.65
5.3.10.0100.06713.61
5.3.00.2170.04013.59
5.2.170.1770.03311.02
5.2.160.1800.03311.00
5.2.150.1630.03711.07
5.2.140.1800.03311.05
5.2.130.1930.03310.95
5.2.120.1800.03711.17
5.2.110.1770.03310.95
5.2.100.1730.03711.20
5.2.90.1800.03010.96
5.2.80.1500.03311.05
5.2.70.1570.02710.95
5.2.60.1530.03710.92
5.2.50.1530.03311.05
5.2.40.1270.02710.86
5.2.30.1200.03010.83
5.2.20.1270.02710.81
5.2.10.1200.03010.77
5.2.00.1270.02310.63
5.1.60.1270.02010.23
5.1.50.0070.02010.11
5.1.40.0000.0339.99
5.1.30.0030.05710.49
5.1.20.0200.03310.44
5.1.10.1500.03010.09
5.1.00.1400.02710.20
5.0.50.0700.0178.53
5.0.40.0800.0238.50
5.0.30.0670.0338.38
5.0.20.0770.0238.38
5.0.10.0670.0208.38
5.0.00.0570.0338.38
4.4.90.0700.0138.38
4.4.80.0700.0208.38
4.4.70.0730.0178.38
4.4.60.0770.0208.38
4.4.50.0630.0178.38
4.4.40.0830.0378.38
4.4.30.0670.0208.38
4.4.20.0000.0378.38
4.4.10.0030.0338.38
4.4.00.0000.0578.38
4.3.110.0100.0178.38
4.3.100.0000.0278.38
4.3.90.0030.0338.38
4.3.80.0000.0538.38
4.3.70.0230.0308.38
4.3.60.0770.0278.38
4.3.50.0630.0178.38
4.3.40.0730.0338.38
4.3.30.0430.0308.38
4.3.20.0000.0208.38
4.3.10.0070.0278.38
4.3.00.0030.0378.38

preferences:
36.65 ms | 401 KiB | 5 Q