3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Name\Space { function bar() { echo "bar over here!"; } } //set_error_handler(function() { return true; }); class Foo { use function Name\Space\bar; const bar = 'yo'; function baz() { $this->bar = function() {echo 'im a callable bar';}; } } $foo = new Foo(); $foo->baz(); $foo->bar();

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.300.0130.05718.87
5.4.290.0200.06719.06
5.4.280.0200.03319.22
5.4.270.0270.03318.86
5.4.260.0130.03719.13
5.4.250.0230.03719.22
5.4.240.0170.03319.08
5.4.230.0200.06018.84
5.4.220.0130.03719.14
5.4.210.0200.04718.99
5.4.200.0230.06318.94
5.4.190.0200.07019.23
5.4.180.0170.03718.84
5.4.170.0170.03719.27
5.4.160.0130.04719.04
5.4.150.0230.03319.29
5.4.140.0170.03316.50
5.4.130.0200.03716.28
5.4.120.0130.03716.64
5.4.110.0230.03716.35
5.4.100.0170.06016.55
5.4.90.0170.03316.58
5.4.80.0100.04016.50
5.4.70.0130.03716.36
5.4.60.0130.04316.38
5.4.50.0100.04316.43
5.4.40.0170.07716.43
5.4.30.0200.03316.34
5.4.20.0200.03016.52
5.4.10.0130.04016.42
5.4.00.0130.03315.79
5.3.280.0170.04314.51
5.3.270.0230.06714.57
5.3.260.0200.04014.61
5.3.250.0270.03714.53
5.3.240.0130.03714.57
5.3.230.0100.07314.61
5.3.220.0200.03714.53
5.3.210.0100.08714.57
5.3.200.0230.03014.68
5.3.190.0170.03714.65
5.3.180.0170.04014.46
5.3.170.0200.04014.78
5.3.160.0100.04314.55
5.3.150.0270.03314.64
5.3.140.0200.03714.66
5.3.130.0100.06014.54
5.3.120.0130.04014.77
5.3.110.0100.04014.66
5.3.100.0200.03014.08
5.3.90.0170.07314.02
5.3.80.0100.04013.93
5.3.70.0300.02713.98
5.3.60.0170.07314.16
5.3.50.0100.05013.85
5.3.40.0070.04313.87
5.3.30.0200.04013.82
5.3.20.0130.03313.91
5.3.10.0200.03013.63
5.3.00.0200.03713.56

preferences:
138.56 ms | 1394 KiB | 7 Q