3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __construct() { $this->herp = 'derp'; } function bar($declared_arg) { return $this->herp; } function baz($declared_arg) { $x = $this->bar($declared_arg); var_dump(func_get_args()); var_dump($x); var_dump($declared_arg); } } (new 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)
8.3.60.0030.01418.55
8.3.50.0110.00522.99
8.3.40.0040.01118.67
8.3.30.0070.00719.09
8.3.20.0070.00020.34
8.3.10.0090.00018.90
8.3.00.0080.00019.13
8.2.180.0110.00316.38
8.2.170.0120.00322.96
8.2.160.0080.00820.41
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.16
8.2.110.0050.00520.57
8.2.100.0070.00418.22
8.2.90.0030.00618.97
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0080.00017.78
8.2.50.0040.00718.07
8.2.40.0040.00418.28
8.2.30.0000.00819.37
8.2.20.0080.00017.75
8.2.10.0070.00018.06
8.2.00.0000.00717.59
8.1.280.0070.01125.92
8.1.270.0040.00423.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0070.00419.02
8.1.220.0030.00617.76
8.1.210.0040.00818.77
8.1.200.0100.00317.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0030.00618.61
8.1.160.0000.00721.95
8.1.150.0000.00818.89
8.1.140.0040.00417.49
8.1.130.0000.00717.87
8.1.120.0040.00417.48
8.1.110.0030.00617.41
8.1.100.0000.00717.45
8.1.90.0070.00017.34
8.1.80.0000.00717.35
8.1.70.0030.00317.37
8.1.60.0000.00817.55
8.1.50.0030.00617.56
8.1.40.0040.00417.46
8.1.30.0000.00817.48
8.1.20.0000.00817.55
8.1.10.0000.00717.60
8.1.00.0000.00817.40
8.0.300.0000.00918.77
8.0.290.0000.00816.63
8.0.280.0030.00318.32
8.0.270.0070.00017.21
8.0.260.0020.00517.26
8.0.250.0030.00316.96
8.0.240.0070.00316.91
8.0.230.0030.00316.98
8.0.220.0030.00316.88
8.0.210.0040.00416.95
8.0.200.0070.00016.98
8.0.190.0050.00316.96
8.0.180.0030.00316.94
8.0.170.0060.00316.95
8.0.160.0030.00316.78
8.0.150.0050.00316.86
8.0.140.0070.00016.73
8.0.130.0000.00513.37
8.0.120.0020.00516.85
8.0.110.0040.00416.78
8.0.100.0040.00416.86
8.0.90.0040.00416.71
8.0.80.0080.00716.86
8.0.70.0030.00616.94
8.0.60.0040.00416.87
8.0.50.0040.00416.81
8.0.30.0100.00917.12
8.0.20.0150.00517.40
8.0.10.0020.00516.86
8.0.00.0090.01116.71
7.4.330.0000.00515.15
7.4.320.0060.00016.43
7.4.300.0000.00616.51
7.4.290.0050.00216.51
7.4.280.0000.01016.45
7.4.270.0000.00716.61
7.4.260.0000.00716.66
7.4.250.0000.00716.54
7.4.240.0020.00516.57
7.4.230.0050.00316.60
7.4.220.0120.00616.57
7.4.210.0100.01016.48
7.4.200.0000.00716.69
7.4.160.0040.01516.48
7.4.150.0030.01417.40
7.4.140.0080.00817.86
7.4.130.0180.01016.45
7.4.120.0080.01016.57
7.4.110.0090.00916.52
7.4.100.0110.00816.38
7.4.90.0040.01416.51
7.4.80.0110.01119.39
7.4.70.0070.01016.53
7.4.60.0070.01016.55
7.4.50.0000.00816.38
7.4.40.0120.00616.27
7.4.30.0050.01016.58
7.4.00.0120.00314.85
7.3.330.0060.00013.16
7.3.320.0060.00013.37
7.3.310.0040.00416.34
7.3.300.0030.00316.26
7.3.290.0120.00916.37
7.3.280.0080.01016.29
7.3.270.0130.00317.40
7.3.260.0130.00716.57
7.3.250.0110.01116.44
7.3.240.0060.01116.21
7.3.230.0160.00616.53
7.3.210.0150.00716.59
7.3.200.0100.01119.39
7.3.190.0080.02016.24
7.3.180.0120.00316.46
7.3.170.0110.00616.53
7.3.160.0030.01516.38
7.2.330.0130.00516.38
7.2.320.0070.01416.80
7.2.310.0170.00716.62
7.2.300.0090.00916.73
7.2.290.0030.01316.78
7.1.70.0120.00017.27
7.1.60.0070.01019.61
7.1.50.0130.01616.61
7.1.00.0030.07322.35
7.0.200.0000.00716.76
7.0.140.0000.07721.92
7.0.60.0030.04319.75
7.0.50.0130.07717.89
7.0.40.0070.06320.29
7.0.30.0300.08320.07
7.0.20.0400.07320.30
7.0.10.0100.03720.19
7.0.00.0100.06020.06
5.6.280.0030.07321.15
5.6.210.0170.07020.63
5.6.200.0070.05718.24
5.6.190.0000.09320.63
5.6.180.0370.07720.61
5.6.170.0230.04020.58
5.6.160.0070.08320.49
5.6.150.0030.08318.29
5.6.140.0000.04718.21
5.6.130.0100.08318.16
5.6.120.0000.05721.02
5.6.110.0100.04721.14
5.6.100.0100.07720.94
5.6.90.0130.08020.89
5.6.80.0070.08320.52
5.5.350.0130.05020.43
5.5.340.0000.04317.98
5.5.330.0100.07320.19
5.5.320.0030.07720.31
5.5.310.0270.06020.51
5.5.300.0070.08017.98
5.5.290.0200.07017.99
5.5.280.0000.04320.97
5.5.270.0030.07020.88
5.5.260.0030.04720.80
5.5.250.0100.08320.58
5.5.240.0030.07720.07
5.4.450.0600.05719.45
5.4.440.1100.08019.63
5.4.430.1000.05719.16
5.4.420.0800.05719.46
5.4.410.0570.06019.57
5.4.400.0900.05019.31
5.4.390.0830.05719.01
5.4.380.0270.05718.57
5.4.370.0270.06318.46
5.4.360.0470.07318.80
5.4.350.0330.05018.57
5.4.340.0500.04718.70
5.4.320.0070.03812.50
5.4.310.0080.03712.50
5.4.300.0050.03712.51
5.4.290.0060.05012.50
5.4.280.0070.03412.40
5.4.270.0060.03612.40
5.4.260.0070.04612.40
5.4.250.0090.03912.39
5.4.240.0100.04112.40
5.4.230.0070.04112.39
5.4.220.0060.03612.39
5.4.210.0040.03712.39
5.4.200.0080.03712.39
5.4.190.0070.03412.38
5.4.180.0050.04412.39
5.4.170.0080.04312.40
5.4.160.0060.03612.39
5.4.150.0060.03612.39
5.4.140.0070.03612.07
5.4.130.0060.03612.07
5.4.120.0020.04012.02
5.4.110.0040.04112.02
5.4.100.0060.03512.02
5.4.90.0100.03312.02
5.4.80.0070.04212.02
5.4.70.0080.03212.01
5.4.60.0100.03712.02
5.4.50.0100.04412.01
5.4.40.0070.03612.00
5.4.30.0090.03312.00
5.4.20.0060.03512.00
5.4.10.0130.02812.00
5.4.00.0090.03211.49
5.3.290.0050.04012.80
5.3.280.0070.03812.71
5.3.270.0080.04112.72
5.3.260.0060.04112.72
5.3.250.0080.04612.72
5.3.240.0130.03312.72
5.3.230.0030.04412.71
5.3.220.0060.04312.68
5.3.210.0100.03912.68
5.3.200.0090.04312.68
5.3.190.0060.04312.68
5.3.180.0080.04512.67
5.3.170.0100.03212.67
5.3.160.0090.03812.67
5.3.150.0080.03612.67
5.3.140.0100.03712.66
5.3.130.0110.03812.66
5.3.120.0050.04312.66
5.3.110.0030.04512.66
5.3.100.0060.04012.13
5.3.90.0070.04312.11
5.3.80.0080.04312.10
5.3.70.0090.04012.10
5.3.60.0090.04412.09
5.3.50.0080.03912.03
5.3.40.0060.03912.03
5.3.30.0060.03511.99
5.3.20.0070.04011.77
5.3.10.0090.03911.73
5.3.00.0070.03911.72
5.2.170.0080.0329.22
5.2.160.0080.0359.23
5.2.150.0090.0349.23
5.2.140.0070.0389.23
5.2.130.0050.0309.18
5.2.120.0030.0349.19
5.2.110.0080.0329.19
5.2.100.0060.0359.18
5.2.90.0070.0379.18
5.2.80.0080.0379.18
5.2.70.0040.0329.18
5.2.60.0100.0339.13
5.2.50.0090.0349.10
5.2.40.0090.0279.08
5.2.30.0050.0309.05
5.2.20.0090.0239.04
5.2.10.0050.0288.95
5.2.00.0050.0328.81
5.1.60.0060.0348.09
5.1.50.0070.0318.09
5.1.40.0060.0298.08
5.1.30.0050.0318.43
5.1.20.0090.0318.45
5.1.10.0070.0368.17
5.1.00.0080.0228.17
5.0.50.0080.0246.65
5.0.40.0040.0196.51
5.0.30.0060.0346.32
5.0.20.0050.0236.29
5.0.10.0070.0226.27
5.0.00.0040.0296.26
4.4.90.0030.0234.78
4.4.80.0060.0124.76
4.4.70.0020.0164.76
4.4.60.0020.0164.76
4.4.50.0050.0134.77
4.4.40.0030.0254.71
4.4.30.0030.0154.75
4.4.20.0050.0174.84
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0030.0164.66
4.3.100.0010.0184.66
4.3.90.0020.0184.63
4.3.80.0030.0264.58
4.3.70.0060.0134.63
4.3.60.0040.0154.63
4.3.50.0020.0214.63
4.3.40.0010.0264.54
4.3.30.0030.0153.30
4.3.20.0030.0153.28
4.3.10.0030.0183.25
4.3.00.0130.0207.91

preferences:
60.37 ms | 401 KiB | 5 Q