3v4l.org

run code in 300+ PHP versions simultaneously
<?php //set_error_handler(function() { return true; }); class Foo { const bar = 'yo' function baz() { $this->bar = function(){ echo 'im a callable bar';}; } function bar() { echo 'called'; } } $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.0100.04212.50
5.4.290.0110.04812.51
5.4.280.0060.05012.40
5.4.270.0080.04712.40
5.4.260.0060.05212.40
5.4.250.0090.04912.40
5.4.240.0090.04712.40
5.4.230.0090.04912.39
5.4.220.0080.04912.39
5.4.210.0060.05012.39
5.4.200.0100.04912.39
5.4.190.0120.04612.39
5.4.180.0120.04612.39
5.4.170.0100.04812.40
5.4.160.0070.04712.39
5.4.150.0080.04512.39
5.4.140.0070.05112.08
5.4.130.0100.04512.06
5.4.120.0060.05212.02
5.4.110.0120.04712.02
5.4.100.0090.05612.02
5.4.90.0100.04812.02
5.4.80.0090.05012.02
5.4.70.0130.04312.02
5.4.60.0050.04612.02
5.4.50.0070.05012.02
5.4.40.0110.04712.00
5.4.30.0100.05312.00
5.4.20.0080.04312.00
5.4.10.0120.04312.00
5.4.00.0070.04611.50
5.3.280.0090.03712.71
5.3.270.0130.03412.72
5.3.260.0050.04112.71
5.3.250.0080.03612.72
5.3.240.0060.05312.72
5.3.230.0120.05112.71
5.3.220.0080.05212.68
5.3.210.0150.04712.68
5.3.200.0110.04812.68
5.3.190.0110.04712.68
5.3.180.0110.04912.68
5.3.170.0070.05012.67
5.3.160.0070.05212.68
5.3.150.0030.04012.67
5.3.140.0040.04012.66
5.3.130.0050.04112.66
5.3.120.0070.03812.66
5.3.110.0070.03812.66
5.3.100.0100.03312.12
5.3.90.0140.02812.10
5.3.80.0040.03812.09
5.3.70.0060.03712.09
5.3.60.0050.03712.08
5.3.50.0080.03512.02
5.3.40.0050.03812.02
5.3.30.0030.03811.98
5.3.20.0060.03611.76
5.3.10.0080.03211.73
5.3.00.0030.03911.71

preferences:
143.86 ms | 1394 KiB | 7 Q