3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { $bla = 'go' public function bar() { return function() use ($this) { 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.05319.01
5.4.260.0130.07018.66
5.4.250.0170.05718.80
5.4.240.0030.07018.75
5.4.230.0200.06018.77
5.4.220.0100.05718.77
5.4.210.0100.05718.99
5.4.200.0000.06718.99
5.4.190.0100.05318.80
5.4.180.0200.06318.94
5.4.170.0200.05318.93
5.4.160.0070.05718.93
5.4.150.0070.05718.79
5.4.140.0130.05016.59
5.4.130.0130.06316.59
5.4.120.0070.05316.42
5.4.110.0100.05716.52
5.4.100.0030.05716.41
5.4.90.0030.05716.52
5.4.80.0070.05016.51
5.4.70.0030.07716.64
5.4.60.0200.04016.49
5.4.50.0200.05716.30
5.4.40.0170.04316.41
5.4.30.0100.05716.33
5.4.20.0070.05316.39
5.4.10.0170.05016.38
5.4.00.0130.05015.84
5.3.280.0170.05714.57
5.3.270.0130.05014.73
5.3.260.0170.07014.67
5.3.250.0130.07714.50
5.3.240.0030.05314.61
5.3.230.0070.06014.59
5.3.220.0030.05314.74
5.3.210.0170.05714.79
5.3.200.0130.05314.46
5.3.190.0130.06314.58
5.3.180.0100.04714.55
5.3.170.0070.07714.63
5.3.160.0070.08014.69
5.3.150.0000.06714.54
5.3.140.0270.06014.64
5.3.130.0200.05314.53
5.3.120.0070.07014.63
5.3.110.0170.04314.72
5.3.100.0130.06714.11
5.3.90.0200.04313.92
5.3.80.0100.05014.09
5.3.70.0100.06714.20
5.3.60.0030.07014.09
5.3.50.0070.05314.01
5.3.40.0100.07013.93
5.3.30.0030.05313.73
5.3.20.0100.05713.52
5.3.10.0130.06313.82
5.3.00.0030.07313.72
5.2.170.0070.04010.96
5.2.160.0030.04011.21
5.2.150.0070.04311.14
5.2.140.0070.04011.12
5.2.130.0130.03711.31
5.2.120.0170.04011.08
5.2.110.0100.04311.18
5.2.100.0170.04311.18
5.2.90.0070.03711.27
5.2.80.0130.04311.26
5.2.70.0130.05011.16
5.2.60.0130.05311.00
5.2.50.0030.06310.92
5.2.40.0070.04011.07
5.2.30.0200.04311.04
5.2.20.0070.05710.96
5.2.10.0100.03710.68
5.2.00.0100.05010.70
5.1.60.0030.03710.23
5.1.50.0100.03010.06
5.1.40.0030.03310.16
5.1.30.0000.04310.41
5.1.20.0070.04010.44
5.1.10.0070.04010.15
5.1.00.0100.03010.30
5.0.50.0030.0378.70
5.0.40.0100.0338.60
5.0.30.0030.0578.28
5.0.20.0070.0338.17
5.0.10.0070.0408.16
5.0.00.0070.0408.23
4.4.90.0030.0307.25
4.4.80.0030.0207.25
4.4.70.0030.0307.25
4.4.60.0100.0237.25
4.4.50.0030.0237.25
4.4.40.0030.0337.25
4.4.30.0030.0277.25
4.4.20.0100.0137.25
4.4.10.0030.0237.25
4.4.00.0070.0307.25
4.3.110.0000.0237.25
4.3.100.0030.0237.25
4.3.90.0070.0237.25
4.3.80.0000.0377.25
4.3.70.0030.0337.25
4.3.60.0030.0237.25
4.3.50.0030.0207.25
4.3.40.0100.0307.25
4.3.30.0070.0177.25
4.3.20.0070.0277.25
4.3.10.0000.0307.25
4.3.00.0100.0308.17

preferences:
138.41 ms | 1394 KiB | 7 Q