3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { break; } for ($i = 0; $i < 10; $i++) { print $i . PHP_EOL; for ($q = 0; $q < 10; $q++) { if ($q > 3) { foo(); } } }

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.5.60.0070.06020.03
5.5.50.0130.04020.16
5.5.40.0030.05020.00
5.5.30.0100.03720.10
5.5.20.0030.04019.91
5.5.10.0100.04020.13
5.5.00.0070.03720.04
5.4.220.0000.04319.13
5.4.210.0030.04719.23
5.4.200.0100.04018.90
5.4.190.0030.03718.89
5.4.180.0030.03718.98
5.4.170.0070.03719.05
5.4.160.0000.05319.03
5.4.150.0030.04719.02
5.4.140.0070.07316.34
5.4.130.0100.06716.46
5.4.120.0030.07716.44
5.4.110.0070.05016.30
5.4.100.0100.04016.44
5.4.90.0030.07316.47
5.4.80.0100.07016.38
5.4.70.0070.07016.38
5.4.60.0100.07016.49
5.4.50.0070.05716.40
5.4.40.0070.04316.41
5.4.30.0100.06316.49
5.4.20.0170.05716.41
5.4.10.0000.08016.48
5.4.00.0030.06315.90
5.3.270.0100.06314.66
5.3.260.0130.05314.63
5.3.250.0070.05014.66
5.3.240.0100.07314.74
5.3.230.0030.07714.52
5.3.220.0100.07014.46
5.3.210.0130.06014.45
5.3.200.0070.06714.62
5.3.190.0030.07314.60
5.3.180.0070.08014.63
5.3.170.0030.08314.52
5.3.160.0130.07314.63
5.3.150.0030.07314.52
5.3.140.0100.06714.48
5.3.130.0070.08014.68
5.3.120.0030.06314.57
5.3.110.0100.07314.61
5.3.100.0030.07714.00
5.3.90.0030.06714.00
5.3.80.0030.07013.94
5.3.70.0030.06714.00
5.3.60.0000.07013.88
5.3.50.0070.06014.04
5.3.40.0030.07314.01
5.3.30.0030.07313.96
5.3.20.0000.05713.81
5.3.10.0130.07713.77
5.3.00.0070.07013.62
5.2.170.0070.06011.00
5.2.160.0100.05011.20
5.2.150.0100.04711.16
5.2.140.0030.06311.05
5.2.130.0070.05710.98
5.2.120.0130.05311.21
5.2.110.0070.05711.19
5.2.100.0030.04311.21
5.2.90.0100.05711.12
5.2.80.0070.06011.17
5.2.70.0100.05311.20
5.2.60.0070.06011.07
5.2.50.0030.06311.16
5.2.40.0000.06311.05
5.2.30.0070.06011.09
5.2.20.0130.05710.87
5.2.10.0070.05310.91
5.2.00.0070.05010.84
5.1.60.0070.04710.08
5.1.50.0070.05710.03
5.1.40.0030.0509.97
5.1.30.0030.05010.36
5.1.20.0130.04710.27
5.1.10.0030.05310.07
5.1.00.0100.04310.15
5.0.50.0070.0438.65
5.0.40.0000.0478.65
5.0.30.0030.0608.65
5.0.20.0030.0408.65
5.0.10.0000.0478.65
5.0.00.0030.0608.65
4.4.90.0030.0338.65
4.4.80.0100.0278.65
4.4.70.0030.0378.65
4.4.60.0000.0378.65
4.4.50.0000.0378.65
4.4.40.0000.0338.65
4.4.30.0100.0308.65
4.4.20.0030.0308.65
4.4.10.0070.0308.65
4.4.00.0000.0478.65
4.3.110.0000.0378.65
4.3.100.0030.0338.65
4.3.90.0070.0208.65
4.3.80.0000.0438.65
4.3.70.0070.0308.65
4.3.60.0000.0308.65
4.3.50.0000.0308.65
4.3.40.0030.0378.65
4.3.30.0000.0338.65
4.3.20.0030.0378.65
4.3.10.0000.0378.65
4.3.00.0030.0308.65

preferences:
141.57 ms | 1394 KiB | 7 Q