3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() { echo __METHOD__, "\n"; return $this; } } $foo = new Foo()->bar(); print_r($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.4.270.0060.03512.41
5.4.260.0070.05018.93
5.4.250.0070.05018.98
5.4.240.0070.05318.82
5.4.230.0100.05718.95
5.4.220.0000.06718.86
5.4.210.0170.06318.92
5.4.200.0070.05318.98
5.4.190.0070.07718.98
5.4.180.0030.06018.76
5.4.170.0130.05018.79
5.4.160.0070.05319.00
5.4.150.0070.06018.79
5.4.140.0100.07016.45
5.4.130.0200.05716.44
5.4.120.0100.06316.53
5.4.110.0270.05016.54
5.4.100.0170.04016.38
5.4.90.0130.04316.56
5.4.80.0070.07016.41
5.4.70.0100.04716.51
5.4.60.0100.06316.55
5.4.50.0100.04316.57
5.4.40.0000.07716.55
5.4.30.0030.05316.61
5.4.20.0070.05016.38
5.4.10.0100.05716.38
5.4.00.0070.05015.96
5.3.280.0070.07314.42
5.3.270.0100.05014.51
5.3.260.0030.06014.68
5.3.250.0030.08014.57
5.3.240.0070.06014.61
5.3.230.0070.06014.59
5.3.220.0170.06314.65
5.3.210.0200.05014.54
5.3.200.0170.06014.64
5.3.190.0130.04314.39
5.3.180.0030.05314.78
5.3.170.0000.05714.56
5.3.160.0000.05714.56
5.3.150.0130.04714.79
5.3.140.0130.04314.52
5.3.130.0070.07014.56
5.3.120.0030.05714.63
5.3.110.0070.05014.73
5.3.100.0030.05314.17
5.3.90.0100.04713.92
5.3.80.0070.06714.00
5.3.70.0070.05013.92
5.3.60.0000.07014.22
5.3.50.0070.05013.95
5.3.40.0130.04014.03
5.3.30.0070.06313.89
5.3.20.0070.04713.78
5.3.10.0130.04013.48
5.3.00.0130.04013.47
5.2.170.0070.04011.13
5.2.160.0130.03311.36
5.2.150.0030.04311.10
5.2.140.0000.05011.10
5.2.130.0030.05011.16
5.2.120.0100.04011.19
5.2.110.0200.04011.09
5.2.100.0030.04011.18
5.2.90.0030.05311.08
5.2.80.0100.04711.06
5.2.70.0000.04711.11
5.2.60.0000.04311.12
5.2.50.0070.04311.20
5.2.40.0170.02711.07
5.2.30.0100.03711.06
5.2.20.0100.03710.94
5.2.10.0030.04010.93
5.2.00.0070.03710.72
5.1.60.0000.05310.09
5.1.50.0070.03010.06
5.1.40.0130.03010.02
5.1.30.0030.03310.32
5.1.20.0000.04010.30
5.1.10.0000.0379.91
5.1.00.0000.03710.14
5.0.50.0070.0278.62
5.0.40.0100.0208.45
5.0.30.0000.0478.31
5.0.20.0030.0278.24
5.0.10.0030.0278.32
5.0.00.0000.0438.36
4.4.90.0000.0237.38
4.4.80.0000.0237.38
4.4.70.0030.0237.38
4.4.60.0030.0277.38
4.4.50.0070.0237.38
4.4.40.0070.0307.38
4.4.30.0070.0177.38
4.4.20.0030.0207.38
4.4.10.0000.0237.38
4.4.00.0100.0277.38
4.3.110.0000.0237.38
4.3.100.0000.0237.38
4.3.90.0030.0207.38
4.3.80.0030.0337.38
4.3.70.0030.0207.38
4.3.60.0030.0307.38
4.3.50.0030.0307.38
4.3.40.0030.0477.38
4.3.30.0030.0207.38
4.3.20.0070.0277.38
4.3.10.0100.0237.38
4.3.00.0000.0237.07

preferences:
141.94 ms | 1394 KiB | 7 Q