3v4l.org

run code in 300+ PHP versions simultaneously
<?php function maybeReturn($v) { if ($v === 5) return continue; } for ($i=0; $i<=10; $i++) { maybeReturn($v); echo $i; }

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.4.260.0100.05018.80
5.4.250.0200.07018.93
5.4.240.0030.06718.76
5.4.230.0030.05718.99
5.4.220.0100.07718.94
5.4.210.0170.04718.81
5.4.200.0000.06018.91
5.4.190.0070.05018.93
5.4.180.0130.04319.01
5.4.170.0070.05718.99
5.4.160.0100.05319.08
5.4.150.0100.05318.97
5.4.140.0030.05716.42
5.4.130.0130.05316.57
5.4.120.0100.04716.42
5.4.110.0070.06016.43
5.4.100.0100.05316.62
5.4.90.0230.04016.44
5.4.80.0070.06016.64
5.4.70.0030.05316.31
5.4.60.0000.05716.44
5.4.50.0100.04316.50
5.4.40.0230.03316.45
5.4.30.0130.04016.37
5.4.20.0170.06316.62
5.4.10.0070.07716.35
5.4.00.0130.04715.90
5.3.280.0030.05314.82
5.3.270.0130.07014.59
5.3.260.0030.05714.65
5.3.250.0200.03714.64
5.3.240.0100.06014.59
5.3.230.0030.05314.76
5.3.220.0100.05014.64
5.3.210.0030.06314.54
5.3.200.0000.05714.63
5.3.190.0130.05014.54
5.3.180.0170.06714.63
5.3.170.0130.06014.64
5.3.160.0070.05314.58
5.3.150.0030.05314.56
5.3.140.0130.04314.39
5.3.130.0000.06314.53
5.3.120.0070.05314.72
5.3.110.0100.08014.63
5.3.100.0100.06314.03
5.3.90.0070.05014.01
5.3.80.0130.04313.99
5.3.70.0130.06013.92
5.3.60.0100.04714.08
5.3.50.0200.04713.93
5.3.40.0170.04313.91
5.3.30.0130.04014.08
5.3.20.0030.05013.52
5.3.10.0100.04313.55
5.3.00.0030.05313.61
5.2.170.0100.04310.98
5.2.160.0130.04711.21
5.2.150.0070.04311.21
5.2.140.0070.04011.35
5.2.130.0070.04011.17
5.2.120.0070.04011.08
5.2.110.0070.04011.32
5.2.100.0070.04311.20
5.2.90.0070.05011.18
5.2.80.0100.04011.09
5.2.70.0200.03011.17
5.2.60.0070.04011.05
5.2.50.0070.05311.08
5.2.40.0170.04011.09
5.2.30.0100.03710.96
5.2.20.0030.04010.96
5.2.10.0100.05310.93
5.2.00.0000.05010.80
5.1.60.0100.0339.95
5.1.50.0100.03710.06
5.1.40.0130.02710.13
5.1.30.0070.03710.33
5.1.20.0070.05010.41
5.1.10.0070.04710.15
5.1.00.0070.03310.02
5.0.50.0100.0208.59
5.0.40.0070.0238.47
5.0.30.0100.0478.18
5.0.20.0030.0278.17
5.0.10.0030.0278.26
5.0.00.0000.0438.11
4.4.90.0070.0176.16
4.4.80.0100.0206.16
4.4.70.0000.0236.15
4.4.60.0030.0206.15
4.4.50.0030.0306.15
4.4.40.0000.0506.15
4.4.30.0000.0336.11
4.4.20.0030.0236.04
4.4.10.0030.0276.04
4.4.00.0000.0376.04
4.3.110.0070.0276.04
4.3.100.0000.0236.04
4.3.90.0030.0236.04
4.3.80.0070.0276.04
4.3.70.0000.0206.04
4.3.60.0000.0306.04
4.3.50.0000.0236.04
4.3.40.0030.0476.04
4.3.30.0030.0236.04
4.3.20.0030.0206.04
4.3.10.0000.0276.04
4.3.00.0130.0207.80

preferences:
141.92 ms | 1394 KiB | 7 Q