3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { goto X; foreach ($foo as &$x) { X: echo 1; } } test();

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.0170.06719.01
5.4.250.0070.06018.94
5.4.240.0100.05318.99
5.4.230.0030.07318.98
5.4.220.0130.05018.96
5.4.210.0070.05319.00
5.4.200.0000.06018.96
5.4.190.0030.08018.88
5.4.180.0100.05318.94
5.4.170.0200.06719.00
5.4.160.0170.04718.76
5.4.150.0000.06318.99
5.4.140.0130.05016.32
5.4.130.0170.04016.43
5.4.120.0100.05016.57
5.4.110.0000.07016.35
5.4.100.0170.05016.39
5.4.90.0170.06016.46
5.4.80.0130.07716.48
5.4.70.0070.07316.38
5.4.60.0130.06016.37
5.4.50.0100.05316.28
5.4.40.0070.04716.52
5.4.30.0070.04716.46
5.4.20.0030.07716.52
5.4.10.0100.05016.44
5.4.00.0170.05015.95
5.3.280.0070.06314.68
5.3.270.0070.05714.78
5.3.260.0070.05714.62
5.3.250.0070.05014.62
5.3.240.0130.06314.77
5.3.230.0130.04714.50
5.3.220.0030.06014.65
5.3.210.0130.06714.58
5.3.200.0130.04314.74
5.3.190.0070.05714.75
5.3.180.0030.07014.55
5.3.170.0100.05014.58
5.3.160.0130.05714.55
5.3.150.0100.07014.39
5.3.140.0130.05714.61
5.3.130.0030.06014.45
5.3.120.0100.07014.71
5.3.110.0000.07314.62
5.3.100.0030.06314.05
5.3.90.0030.05714.08
5.3.80.0070.05714.00
5.3.70.0100.07714.11
5.3.60.0070.06714.07
5.3.50.0030.05713.96
5.3.40.0030.05714.03
5.3.30.0170.05714.12
5.3.20.0130.06313.91
5.3.10.0200.05713.73
5.3.00.0070.05713.67
5.2.170.0030.04311.36
5.2.160.0070.05711.11
5.2.150.0070.04311.30
5.2.140.0130.04711.12
5.2.130.0070.04011.17
5.2.120.0030.04011.31
5.2.110.0000.04710.93
5.2.100.0130.03711.05
5.2.90.0100.03711.25
5.2.80.0030.06311.30
5.2.70.0070.04311.07
5.2.60.0100.05011.11
5.2.50.0030.04311.09
5.2.40.0100.05011.07
5.2.30.0130.05010.95
5.2.20.0100.04710.95
5.2.10.0130.04310.94
5.2.00.0070.05710.62
5.1.60.0000.03710.00
5.1.50.0030.03310.09
5.1.40.0130.0409.93
5.1.30.0100.03710.32
5.1.20.0030.06010.45
5.1.10.0070.03310.04
5.1.00.0030.03310.13
5.0.50.0100.0208.64
5.0.40.0070.0238.41
5.0.30.0030.0438.21
5.0.20.0100.0278.39
5.0.10.0100.0308.13
5.0.00.0070.0578.24
4.4.90.0030.0276.38
4.4.80.0000.0276.38
4.4.70.0070.0206.38
4.4.60.0070.0306.38
4.4.50.0100.0176.38
4.4.40.0030.0376.38
4.4.30.0000.0236.38
4.4.20.0000.0236.38
4.4.10.0000.0236.38
4.4.00.0030.0306.38
4.3.110.0000.0236.38
4.3.100.0030.0206.38
4.3.90.0070.0176.38
4.3.80.0070.0337.73
4.3.70.0000.0207.73
4.3.60.0030.0277.73
4.3.50.0030.0207.73
4.3.40.0030.0307.73
4.3.30.0100.0137.73
4.3.20.0030.0237.73
4.3.10.0000.0237.73
4.3.00.0130.0206.82

preferences:
138.21 ms | 1394 KiB | 7 Q