3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { break(2); } 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.0170.06320.05
5.5.50.0170.06719.95
5.5.40.0100.06720.15
5.5.30.0130.07320.05
5.5.20.0100.07320.11
5.5.10.0100.06320.12
5.5.00.0030.06720.04
5.4.220.0030.07019.13
5.4.210.0100.07019.23
5.4.200.0100.05318.86
5.4.190.0170.07319.14
5.4.180.0030.07719.02
5.4.170.0200.04019.20
5.4.160.0070.04319.01
5.4.150.0030.07719.11
5.4.140.0170.07016.45
5.4.130.0070.06316.36
5.4.120.0070.04016.19
5.4.110.0070.05316.38
5.4.100.0030.04716.42
5.4.90.0000.07716.48
5.4.80.0100.06316.42
5.4.70.0170.06016.42
5.4.60.0000.04316.41
5.4.50.0100.06716.23
5.4.40.0130.07016.53
5.4.30.0070.07016.39
5.4.20.0130.06016.30
5.4.10.0070.07316.47
5.4.00.0070.06715.58
5.3.270.0130.07014.62
5.3.260.0070.05014.67
5.3.250.0100.07714.58
5.3.240.0030.08014.62
5.3.230.0030.08314.60
5.3.220.0000.07714.55
5.3.210.0100.06714.58
5.3.200.0100.07014.59
5.3.190.0030.08014.57
5.3.180.0170.07014.59
5.3.170.0170.06014.52
5.3.160.0070.06014.56
5.3.150.0100.06714.50
5.3.140.0100.05314.57
5.3.130.0000.08014.66
5.3.120.0030.05014.52
5.3.110.0000.05014.55
5.3.100.0070.04314.09
5.3.90.0030.07713.96
5.3.80.0100.06313.93
5.3.70.0030.05314.05
5.3.60.0070.07713.97
5.3.50.0100.06314.05
5.3.40.0070.07314.03
5.3.30.0000.08013.97
5.3.20.0170.07313.59
5.3.10.0070.06313.79
5.3.00.0100.07013.69
5.2.170.0000.07313.45
5.2.160.0030.03713.45
5.2.150.0130.05313.45
5.2.140.0130.04713.45
5.2.130.0100.04313.45
5.2.120.0070.06013.45
5.2.110.0070.06013.45
5.2.100.0030.06313.45
5.2.90.0100.05713.45
5.2.80.0130.05313.45
5.2.70.0000.04713.45
5.2.60.0030.06313.45
5.2.50.0000.06313.45
5.2.40.0070.06313.45
5.2.30.0030.06313.45
5.2.20.0070.05713.45
5.2.10.0000.05313.45
5.2.00.0030.06313.45
5.1.60.0070.05013.45
5.1.50.0030.05313.45
5.1.40.0000.04713.45
5.1.30.0030.03313.45
5.1.20.0030.03013.45
5.1.10.0070.05313.45
5.1.00.0100.03013.45
5.0.50.0000.04313.45
5.0.40.0030.02713.45
5.0.30.0030.03013.45
5.0.20.0070.02013.45
5.0.10.0100.03313.45
5.0.00.0030.06013.45
4.4.90.0000.03713.45
4.4.80.0030.03313.45
4.4.70.0000.03713.45
4.4.60.0000.04013.45
4.4.50.0000.03313.45
4.4.40.0070.05313.45
4.4.30.0030.03013.45
4.4.20.0070.03313.45
4.4.10.0070.03313.45
4.4.00.0030.05713.45
4.3.110.0000.02313.45
4.3.100.0000.02313.45
4.3.90.0070.02713.45
4.3.80.0000.05713.45
4.3.70.0070.02713.45
4.3.60.0030.03713.45
4.3.50.0100.02013.45
4.3.40.0000.05313.45
4.3.30.0030.02013.45
4.3.20.0000.03713.45
4.3.10.0030.02713.45
4.3.00.0030.02313.45

preferences:
139.72 ms | 1394 KiB | 7 Q