3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() { $x = debug_backtrace(); var_dump(func_get_args()); } static function Baz() { $x = debug_backtrace(); var_dump(func_get_args()); } } (new Foo())->bar(1,2,3); Foo::Baz(1,2,3)

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.320.0080.04212.52
5.4.310.0060.04412.52
5.4.300.0090.03812.51
5.4.290.0060.03812.51
5.4.280.0080.03412.41
5.4.270.0100.03212.41
5.4.260.0060.03712.41
5.4.250.0090.03612.41
5.4.240.0080.04512.41
5.4.230.0120.03812.40
5.4.220.0140.03812.40
5.4.210.0110.03712.40
5.4.200.0100.04812.40
5.4.190.0080.04112.39
5.4.180.0070.04712.39
5.4.170.0120.03212.41
5.4.160.0050.03812.41
5.4.150.0150.04012.40
5.4.140.0070.03612.09
5.4.130.0040.03612.07
5.4.120.0060.03512.04
5.4.110.0110.03812.03
5.4.100.0050.03912.04
5.4.90.0100.04512.03
5.4.80.0070.04212.03
5.4.70.0090.04112.02
5.4.60.0070.04112.02
5.4.50.0090.04212.03
5.4.40.0060.04312.02
5.4.30.0090.03912.01
5.4.20.0070.03812.01
5.4.10.0080.03812.01
5.4.00.0060.03611.50
5.3.290.0060.04112.80
5.3.280.0070.04012.71
5.3.270.0100.04712.72
5.3.260.0050.04012.72
5.3.250.0080.03912.72
5.3.240.0090.04212.72
5.3.230.0080.03812.71
5.3.220.0080.03612.68
5.3.210.0080.04712.68
5.3.200.0040.04712.68
5.3.190.0070.03712.68
5.3.180.0100.03612.68
5.3.170.0060.04112.67
5.3.160.0130.05012.67
5.3.150.0130.04612.67
5.3.140.0070.04612.66
5.3.130.0080.04912.66
5.3.120.0070.03712.66
5.3.110.0090.03812.66
5.3.100.0120.03312.13
5.3.90.0090.03812.11
5.3.80.0060.03712.10
5.3.70.0060.04212.10
5.3.60.0070.04412.09
5.3.50.0070.03912.03
5.3.40.0060.04212.03
5.3.30.0060.04111.98
5.3.20.0050.03711.77
5.3.10.0060.04111.74
5.3.00.0050.04011.72
5.2.170.0060.0339.23
5.2.160.0050.0369.22
5.2.150.0030.0329.22
5.2.140.0060.0379.22
5.2.130.0090.0349.18
5.2.120.0040.0339.18
5.2.110.0030.0309.19
5.2.100.0040.0289.19
5.2.90.0010.0399.18
5.2.80.0070.0319.18
5.2.70.0040.0429.18
5.2.60.0060.0379.13
5.2.50.0070.0379.11
5.2.40.0040.0309.08
5.2.30.0080.0269.06
5.2.20.0030.0379.05
5.2.10.0050.0318.95
5.2.00.0040.0358.81
5.1.60.0010.0308.09
5.1.50.0070.0278.09
5.1.40.0030.0288.07
5.1.30.0060.0258.42
5.1.20.0020.0288.45
5.1.10.0020.0298.17
5.1.00.0030.0268.16
5.0.50.0030.0206.65
5.0.40.0050.0246.51
5.0.30.0050.0296.32
5.0.20.0040.0186.28
5.0.10.0020.0206.27
5.0.00.0040.0296.25
4.4.90.0050.0224.78
4.4.80.0010.0174.75
4.4.70.0030.0174.75
4.4.60.0050.0134.75
4.4.50.0010.0174.77
4.4.40.0020.0274.70
4.4.30.0060.0164.76
4.4.20.0060.0194.84
4.4.10.0020.0164.84
4.4.00.0010.0274.76
4.3.110.0030.0234.66
4.3.100.0000.0184.66
4.3.90.0020.0154.63
4.3.80.0030.0244.59
4.3.70.0030.0144.63
4.3.60.0030.0154.63
4.3.50.0030.0214.63
4.3.40.0020.0244.54
4.3.30.0030.0153.30
4.3.20.0020.0163.29
4.3.10.0010.0163.24
4.3.00.0000.02018.16

preferences:
141.76 ms | 1394 KiB | 7 Q