3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { $bla = 'go' public function bar() { return function() { echo $this->bla; }; } } $foo = new 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.0070.06319.00
5.4.260.0130.05018.78
5.4.250.0100.06318.96
5.4.240.0200.06018.99
5.4.230.0070.05318.77
5.4.220.0200.05718.82
5.4.210.0100.07719.00
5.4.200.0100.05718.77
5.4.190.0130.05318.99
5.4.180.0130.05018.80
5.4.170.0170.06318.83
5.4.160.0130.05018.64
5.4.150.0070.07718.79
5.4.140.0070.06016.55
5.4.130.0100.05716.48
5.4.120.0070.05316.36
5.4.110.0000.06716.55
5.4.100.0070.06716.41
5.4.90.0170.05016.49
5.4.80.0300.05016.40
5.4.70.0030.07316.63
5.4.60.0030.05316.31
5.4.50.0070.04716.34
5.4.40.0030.06316.54
5.4.30.0300.05016.56
5.4.20.0030.06016.46
5.4.10.0170.04716.38
5.4.00.0100.04715.93
5.3.280.0070.07014.42
5.3.270.0130.07314.76
5.3.260.0030.06014.58
5.3.250.0100.05014.68
5.3.240.0070.07314.76
5.3.230.0030.06014.66
5.3.220.0100.06014.65
5.3.210.0070.06014.78
5.3.200.0200.05014.64
5.3.190.0000.06014.79
5.3.180.0130.06714.64
5.3.170.0100.05014.55
5.3.160.0130.07014.39
5.3.150.0070.05314.55
5.3.140.0100.07714.55
5.3.130.0230.06014.54
5.3.120.0100.05014.55
5.3.110.0100.05314.55
5.3.100.0030.05314.12
5.3.90.0100.05714.14
5.3.80.0100.05314.10
5.3.70.0130.04314.09
5.3.60.0130.04713.90
5.3.50.0070.07314.04
5.3.40.0130.05013.93
5.3.30.0100.07013.89
5.3.20.0030.05013.65
5.3.10.0100.06713.65
5.3.00.0170.05013.70
5.2.170.0070.04311.31
5.2.160.0030.04311.21
5.2.150.0100.05311.09
5.2.140.0100.06011.31
5.2.130.0000.05011.09
5.2.120.0030.05311.27
5.2.110.0100.05311.04
5.2.100.0100.05311.05
5.2.90.0130.03711.31
5.2.80.0100.03711.15
5.2.70.0100.05311.07
5.2.60.0000.04311.13
5.2.50.0000.04711.18
5.2.40.0030.04310.96
5.2.30.0000.06011.07
5.2.20.0070.03710.92
5.2.10.0070.04710.94
5.2.00.0030.04710.70
5.1.60.0100.03010.00
5.1.50.0070.0439.95
5.1.40.0070.0479.98
5.1.30.0100.04310.41
5.1.20.0130.04310.57
5.1.10.0100.03310.12
5.1.00.0100.04710.06
5.0.50.0130.0208.58
5.0.40.0000.0408.24
5.0.30.0030.0508.21
5.0.20.0070.0308.21
5.0.10.0070.0308.25
5.0.00.0070.0408.12
4.4.90.0030.0207.25
4.4.80.0100.0177.25
4.4.70.0000.0277.25
4.4.60.0030.0237.25
4.4.50.0000.0337.25
4.4.40.0000.0377.25
4.4.30.0070.0207.25
4.4.20.0030.0307.25
4.4.10.0070.0237.25
4.4.00.0070.0377.25
4.3.110.0100.0177.25
4.3.100.0100.0237.25
4.3.90.0030.0277.25
4.3.80.0070.0307.25
4.3.70.0000.0237.25
4.3.60.0070.0307.25
4.3.50.0070.0237.25
4.3.40.0170.0237.25
4.3.30.0030.0237.25
4.3.20.0000.0307.25
4.3.10.0070.0207.25
4.3.00.0030.0238.17

preferences:
143.15 ms | 1394 KiB | 7 Q