3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { break; } for ($i = 0; $i < 10; $i++) { print $i . PHP_EOL; if ($i > 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.0100.04320.05
5.5.50.0070.07720.13
5.5.40.0070.06720.06
5.5.30.0130.06019.91
5.5.20.0000.07720.07
5.5.10.0100.05019.96
5.5.00.0070.07720.12
5.4.220.0070.07719.23
5.4.210.0100.07718.86
5.4.200.0030.08019.12
5.4.190.0130.07019.13
5.4.180.0070.08019.04
5.4.170.0070.07718.89
5.4.160.0100.07318.83
5.4.150.0030.08319.02
5.4.140.0130.06716.20
5.4.130.0100.07016.41
5.4.120.0100.06316.14
5.4.110.0070.07316.50
5.4.100.0100.03716.51
5.4.90.0170.05316.34
5.4.80.0070.07316.26
5.4.70.0000.04716.35
5.4.60.0130.06716.32
5.4.50.0100.07016.47
5.4.40.0030.07316.42
5.4.30.0030.07716.43
5.4.20.0030.06316.47
5.4.10.0100.07016.33
5.4.00.0100.06715.90
5.3.270.0100.04014.59
5.3.260.0170.07014.73
5.3.250.0100.06714.65
5.3.240.0070.07714.71
5.3.230.0100.07314.73
5.3.220.0030.07314.60
5.3.210.0070.07714.66
5.3.200.0100.06314.59
5.3.190.0000.04714.66
5.3.180.0030.07714.49
5.3.170.0170.04314.58
5.3.160.0170.06314.71
5.3.150.0070.05714.49
5.3.140.0100.06714.57
5.3.130.0030.08014.61
5.3.120.0070.08014.61
5.3.110.0130.06714.66
5.3.100.0100.05714.13
5.3.90.0030.07714.11
5.3.80.0030.04713.94
5.3.70.0100.07014.08
5.3.60.0100.07014.00
5.3.50.0130.05713.87
5.3.40.0030.08014.08
5.3.30.0100.06013.93
5.3.20.0070.05013.67
5.3.10.0030.07313.67
5.3.00.0130.06313.64
5.2.170.0070.06011.26
5.2.160.0130.05711.05
5.2.150.0070.06311.27
5.2.140.0100.06711.02
5.2.130.0030.05311.01
5.2.120.0030.06011.09
5.2.110.0000.07311.15
5.2.100.0100.05710.95
5.2.90.0030.06311.21
5.2.80.0030.05311.02
5.2.70.0030.06311.15
5.2.60.0130.05711.13
5.2.50.0070.05011.04
5.2.40.0000.04010.91
5.2.30.0070.05310.96
5.2.20.0000.06311.01
5.2.10.0030.06010.81
5.2.00.0100.05010.62
5.1.60.0070.05010.08
5.1.50.0000.03010.07
5.1.40.0000.0439.86
5.1.30.0000.04710.35
5.1.20.0000.03010.48
5.1.10.0000.02710.08
5.1.00.0000.02710.15
5.0.50.0000.0238.86
5.0.40.0030.0208.86
5.0.30.0030.0308.86
5.0.20.0030.0178.86
5.0.10.0000.0238.86
5.0.00.0070.0278.86
4.4.90.0000.0238.86
4.4.80.0070.0138.86
4.4.70.0000.0438.86
4.4.60.0030.0378.86
4.4.50.0000.0308.86
4.4.40.0000.0308.86
4.4.30.0000.0178.86
4.4.20.0000.0208.86
4.4.10.0000.0208.86
4.4.00.0000.0278.86
4.3.110.0030.0138.86
4.3.100.0000.0238.86
4.3.90.0130.0208.86
4.3.80.0030.0238.86
4.3.70.0000.0178.86
4.3.60.0030.0138.86
4.3.50.0030.0138.86
4.3.40.0000.0278.86
4.3.30.0000.0178.86
4.3.20.0030.0138.86
4.3.10.0000.0138.86
4.3.00.0030.0108.86

preferences:
140.46 ms | 1386 KiB | 7 Q