3v4l.org

run code in 300+ PHP versions simultaneously
<?php //set_error_handler(function() { return true; }); class Foo { const bar = function () { echo 'im a bar func'); function baz() { } 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.0090.03412.51
5.4.290.0040.04012.51
5.4.280.0090.03912.40
5.4.270.0070.03812.40
5.4.260.0080.04812.40
5.4.250.0110.03312.40
5.4.240.0050.03812.40
5.4.230.0070.03712.39
5.4.220.0060.03812.39
5.4.210.0060.03712.39
5.4.200.0160.02912.39
5.4.190.0070.03612.39
5.4.180.0030.03812.39
5.4.170.0100.03512.39
5.4.160.0100.03312.39
5.4.150.0080.03412.39
5.4.140.0090.03412.08
5.4.130.0050.03612.06
5.4.120.0050.04212.03
5.4.110.0080.04012.02
5.4.100.0100.04912.02
5.4.90.0090.05512.02
5.4.80.0120.05312.02
5.4.70.0050.03912.02
5.4.60.0050.03712.02
5.4.50.0050.03712.02
5.4.40.0070.03412.01
5.4.30.0030.04012.00
5.4.20.0070.03612.00
5.4.10.0090.03912.00
5.4.00.0090.03111.49
5.3.280.0120.03312.70
5.3.270.0120.04412.72
5.3.260.0070.04112.71
5.3.250.0110.04112.72
5.3.240.0130.03312.72
5.3.230.0100.03812.71
5.3.220.0080.03812.68
5.3.210.0180.03612.68
5.3.200.0160.03712.68
5.3.190.0210.03012.68
5.3.180.0090.04812.68
5.3.170.0160.03612.67
5.3.160.0080.04812.67
5.3.150.0050.05012.67
5.3.140.0040.04412.66
5.3.130.0070.04412.66
5.3.120.0100.04112.66
5.3.110.0070.04512.66
5.3.100.0050.04512.12
5.3.90.0060.03712.10
5.3.80.0070.03612.09
5.3.70.0060.04612.09
5.3.60.0080.04812.08
5.3.50.0140.04412.02
5.3.40.0060.05512.02
5.3.30.0120.05111.98
5.3.20.0100.05211.75
5.3.10.0140.04711.73
5.3.00.0100.04611.71

preferences:
139.67 ms | 1394 KiB | 7 Q