3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar($arg) { var_dump(__METHOD__, $arg); } } $f = array('Foo', 'bar'); $f('static array'); $foo = new Foo(); $f = array($foo, 'bar'); $f('array'); $f = 'Foo::bar'; $f('static');

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.0110.00318.05
8.3.50.0090.00722.88
8.3.40.0110.00418.54
8.3.30.0030.01018.91
8.3.20.0000.00920.14
8.3.10.0090.00023.65
8.3.00.0090.00017.50
8.2.180.0060.01416.75
8.2.170.0070.00722.96
8.2.160.0070.00720.53
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.01426.16
8.2.120.0000.00721.04
8.2.110.0040.00920.51
8.2.100.0080.00417.72
8.2.90.0000.00719.23
8.2.80.0060.00317.97
8.2.70.0030.00617.50
8.2.60.0000.01217.93
8.2.50.0080.00418.07
8.2.40.0040.00418.16
8.2.30.0040.00417.95
8.2.20.0040.00417.74
8.2.10.0030.00518.02
8.2.00.0070.00017.66
8.1.280.0120.00325.92
8.1.270.0040.00423.68
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00022.58
8.1.230.0070.00420.86
8.1.220.0060.00318.77
8.1.210.0060.00318.90
8.1.200.0030.00617.36
8.1.190.0000.00917.23
8.1.180.0080.00018.10
8.1.170.0000.00818.53
8.1.160.0000.00821.89
8.1.150.0000.00718.94
8.1.140.0070.00017.41
8.1.130.0000.00717.72
8.1.120.0000.00717.46
8.1.110.0000.00817.35
8.1.100.0000.00817.48
8.1.90.0060.00317.52
8.1.80.0020.00517.46
8.1.70.0040.00417.44
8.1.60.0030.00617.57
8.1.50.0030.00517.58
8.1.40.0040.00417.41
8.1.30.0000.00817.62
8.1.20.0040.00417.70
8.1.10.0000.00717.61
8.1.00.0060.00317.49
8.0.300.0040.00420.00
8.0.290.0070.00016.75
8.0.280.0040.00418.43
8.0.270.0030.00617.25
8.0.260.0000.00617.25
8.0.250.0030.00316.85
8.0.240.0000.00716.95
8.0.230.0000.00816.82
8.0.220.0000.00716.88
8.0.210.0030.00316.88
8.0.200.0000.00616.96
8.0.190.0030.00317.00
8.0.180.0030.00516.80
8.0.170.0000.00816.93
8.0.160.0000.00716.84
8.0.150.0040.00416.88
8.0.140.0040.00416.78
8.0.130.0000.00513.27
8.0.120.0040.00416.72
8.0.110.0080.00016.91
8.0.100.0000.00716.78
8.0.90.0000.00716.84
8.0.80.0030.01416.85
8.0.70.0040.00416.80
8.0.60.0040.00416.96
8.0.50.0000.00817.00
8.0.30.0080.01116.93
8.0.20.0160.00417.40
8.0.10.0020.00516.94
8.0.00.0060.01116.63
7.4.330.0030.00315.02
7.4.320.0060.00016.65
7.4.300.0040.00416.45
7.4.290.0070.00016.52
7.4.280.0000.00716.59
7.4.270.0000.00716.53
7.4.260.0070.00016.60
7.4.250.0040.00416.56
7.4.240.0040.00316.47
7.4.230.0000.00716.67
7.4.220.0150.00416.45
7.4.210.0090.01216.57
7.4.200.0040.00416.38
7.4.160.0040.01216.43
7.4.150.0110.00917.40
7.4.140.0120.00617.86
7.4.130.0080.01016.51
7.4.120.0140.00616.57
7.4.110.0080.00816.48
7.4.100.0070.01316.54
7.4.90.0060.01216.46
7.4.80.0090.00919.39
7.4.70.0080.00816.64
7.4.60.0060.01116.55
7.4.50.0040.00416.45
7.4.40.0100.00716.37
7.4.30.0090.00616.43
7.4.00.0080.00814.98
7.3.330.0030.00313.33
7.3.320.0000.00513.29
7.3.310.0000.00616.26
7.3.300.0070.00016.32
7.3.290.0080.00716.32
7.3.280.0070.01016.26
7.3.270.0090.00917.40
7.3.260.0070.01016.28
7.3.250.0150.00516.53
7.3.240.0070.01016.38
7.3.230.0060.01116.41
7.3.210.0110.00616.27
7.3.200.0130.00919.39
7.3.190.0030.01316.46
7.3.180.0130.00316.55
7.3.170.0080.00816.55
7.3.160.0030.01516.37
7.3.120.0050.01114.76
7.3.110.0060.01014.86
7.3.100.0060.01114.60
7.3.90.0100.00314.72
7.3.80.0070.00714.83
7.3.70.0110.00814.86
7.3.60.0050.00714.81
7.3.50.0040.00714.78
7.3.40.0090.00614.87
7.3.30.0100.00514.79
7.3.20.0040.00916.54
7.3.10.0060.00716.68
7.3.00.0120.00116.47
7.2.330.0120.00616.38
7.2.320.0130.00316.72
7.2.310.0070.01416.50
7.2.300.0090.01216.73
7.2.290.0030.01316.45
7.2.250.0090.00914.85
7.2.240.0080.00814.73
7.2.230.0100.00314.84
7.2.220.0100.00215.04
7.2.210.0060.01114.84
7.2.200.0070.00714.83
7.2.190.0060.00614.90
7.2.180.0040.00914.88
7.2.170.0040.01214.96
7.2.60.0030.01616.89
7.2.00.0040.01119.15
7.1.330.0050.01115.73
7.1.320.0070.00115.77
7.1.310.0020.01215.85
7.1.300.0070.00515.78
7.1.290.0050.00515.97
7.1.280.0040.01115.59
7.1.270.0030.00615.60
7.1.260.0050.00715.94
7.1.200.0100.00015.81
7.1.100.0080.00618.09
7.1.70.0030.00717.21
7.1.60.0090.01519.40
7.1.50.0130.00916.95
7.1.00.0000.08022.24
7.0.200.0080.00316.50
7.0.140.0030.07321.96
7.0.60.0000.04319.78
7.0.50.0000.04317.83
7.0.40.0130.05320.24
7.0.30.0670.07720.12
7.0.20.0300.07320.08
7.0.10.0070.08720.06
7.0.00.0070.04720.08
5.6.280.0000.07721.10
5.6.210.0100.07020.55
5.6.200.0100.08318.31
5.6.190.0000.08320.58
5.6.180.0230.08020.78
5.6.170.0200.03720.56
5.6.160.0100.04720.59
5.6.150.0000.04318.14
5.6.140.0100.08018.18
5.6.130.0030.08318.26
5.6.120.0170.07321.00
5.6.110.0030.04321.00
5.6.100.0100.08020.98
5.6.90.0000.04721.13
5.6.80.0000.06320.41
5.5.350.0230.05020.34
5.5.340.0030.04017.99
5.5.330.0130.08020.19
5.5.320.3500.04320.29
5.5.310.0300.08320.30
5.5.300.0100.08018.04
5.5.290.0030.09317.98
5.5.280.0070.08020.77
5.5.270.0030.07320.78
5.5.260.0070.07720.77
5.5.250.0100.05320.69
5.5.240.0030.03020.04
5.4.450.0170.05719.47
5.4.440.0200.05319.61
5.4.430.0100.05319.46
5.4.420.0070.05719.63
5.4.410.0070.05719.41
5.4.400.0100.05319.25
5.4.390.0070.05719.09
5.4.380.0200.05018.60
5.4.370.0200.03718.60
5.4.360.0130.04018.70
5.4.350.0080.05312.02
5.4.340.0080.05212.02
5.4.320.0040.03812.50
5.4.310.0150.07212.49
5.4.300.0120.05312.50
5.4.290.0110.05512.50
5.4.280.0170.08112.40
5.4.270.0060.05412.39
5.4.260.0080.04112.40
5.4.250.0060.03912.40
5.4.240.0080.04612.39
5.4.230.0080.03712.39
5.4.220.0050.04112.39
5.4.210.0030.03812.39
5.4.200.0040.04012.39
5.4.190.0070.03412.39
5.4.180.0030.03912.38
5.4.170.0030.04312.39
5.4.160.0070.03412.39
5.4.150.0060.04312.38
5.4.140.0050.03812.07
5.4.130.0050.03612.06
5.4.120.0040.03712.02
5.4.110.0060.04712.02
5.4.100.0070.04812.01
5.4.90.0080.03712.01
5.4.80.0060.04012.01
5.4.70.0090.03312.01
5.4.60.0110.03012.01
5.4.50.0110.03112.01
5.4.40.0040.03711.99
5.4.30.0050.03712.00
5.4.20.0040.03612.00
5.4.10.0050.03612.00
5.4.00.0080.03511.48
5.3.290.0090.03612.80
5.3.280.0040.04012.71
5.3.270.0040.04112.72
5.3.260.0100.04812.72
5.3.250.0080.03512.71
5.3.240.0030.04212.72
5.3.230.0090.05012.71
5.3.220.0090.04212.68
5.3.210.0030.04112.68
5.3.200.0030.04012.68
5.3.190.0090.03612.68
5.3.180.0080.03512.68
5.3.170.0130.05712.66
5.3.160.0060.05312.67
5.3.150.0110.05112.67
5.3.140.0090.05112.66
5.3.130.0040.04112.65
5.3.120.0040.04212.66
5.3.110.0090.03812.66
5.3.100.0070.03612.12
5.3.90.0070.03612.10
5.3.80.0070.03512.10
5.3.70.0060.03612.09
5.3.60.0040.03812.08
5.3.50.0110.03612.03
5.3.40.0080.03612.03
5.3.30.0040.03811.98
5.3.20.0060.04511.77
5.3.10.0080.04111.73
5.3.00.0060.03711.72
5.2.170.0050.0309.23
5.2.160.0030.0389.22
5.2.150.0080.0269.23
5.2.140.0050.0309.22
5.2.130.0080.0259.18
5.2.120.0020.0329.18
5.2.110.0040.0339.19
5.2.100.0060.0409.18
5.2.90.0090.0399.18
5.2.80.0030.0449.18
5.2.70.0060.0349.17
5.2.60.0030.0349.13
5.2.50.0060.0309.10
5.2.40.0040.0329.07
5.2.30.0050.0299.05
5.2.20.0030.0309.03
5.2.10.0060.0308.94
5.2.00.0060.0368.80
5.1.60.0050.0238.09
5.1.50.0070.0308.09
5.1.40.0050.0258.07
5.1.30.0040.0298.41
5.1.20.0040.0268.45
5.1.10.0050.0268.17
5.1.00.0060.0368.17
5.0.50.0050.0276.64
5.0.40.0040.0306.50
5.0.30.0070.0416.32
5.0.20.0050.0196.28
5.0.10.0080.0166.25
5.0.00.0030.0336.25
4.4.90.0050.0214.78
4.4.80.0010.0244.75
4.4.70.0030.0164.75
4.4.60.0050.0134.75
4.4.50.0030.0214.77
4.4.40.0020.0264.71
4.4.30.0030.0224.76
4.4.20.0030.0184.84
4.4.10.0020.0174.85
4.4.00.0030.0264.75
4.3.110.0040.0154.67
4.3.100.0020.0164.66
4.3.90.0030.0214.63
4.3.80.0020.0304.58
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0010.0174.63
4.3.40.0050.0224.53
4.3.30.0030.0153.30
4.3.20.0000.0183.28
4.3.10.0030.0163.23
4.3.00.0030.0207.14

preferences:
36.2 ms | 401 KiB | 5 Q