3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { // As first arg public static function bar() { $a = func_get_args(); var_dump($a); } // As later arg public static function baz() { echo "Entering baz\n"; var_dump(func_get_args()); } } Foo::bar(1,2,3); Foo::baz(4,5,6);

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.0100.00718.43
8.3.50.0140.00522.83
8.3.40.0070.00718.66
8.3.30.0090.00618.79
8.3.20.0040.00420.21
8.3.10.0060.00320.44
8.3.00.0050.00319.25
8.2.180.0110.00716.34
8.2.170.0040.01122.96
8.2.160.0040.01120.57
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0070.00020.86
8.2.110.0090.00020.51
8.2.100.0080.00317.71
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0030.00517.63
8.2.60.0040.00417.80
8.2.50.0030.00918.07
8.2.40.0040.00417.97
8.2.30.0040.00419.48
8.2.20.0000.00717.54
8.2.10.0060.00318.05
8.2.00.0000.00717.58
8.1.280.0040.01525.92
8.1.270.0060.00323.79
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00322.02
8.1.230.0080.00417.42
8.1.220.0050.00217.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0030.00517.00
8.1.180.0040.00418.10
8.1.170.0000.00818.45
8.1.160.0000.00721.94
8.1.150.0040.00418.79
8.1.140.0000.00817.43
8.1.130.0030.00317.68
8.1.120.0000.00817.52
8.1.110.0000.00817.32
8.1.100.0040.00417.32
8.1.90.0050.00317.40
8.1.80.0040.00417.35
8.1.70.0080.00017.38
8.1.60.0000.00817.53
8.1.50.0040.00417.45
8.1.40.0000.00717.38
8.1.30.0000.00817.46
8.1.20.0040.00417.52
8.1.10.0030.00517.55
8.1.00.0040.00417.46
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0000.00818.47
8.0.270.0040.00417.30
8.0.260.0030.00317.27
8.0.250.0030.00316.91
8.0.240.0030.00616.81
8.0.230.0040.00416.91
8.0.220.0000.00716.87
8.0.210.0000.00716.84
8.0.200.0000.00616.93
8.0.190.0040.00416.79
8.0.180.0030.00316.84
8.0.170.0030.00516.89
8.0.160.0070.00016.82
8.0.150.0000.00816.86
8.0.140.0040.00416.81
8.0.130.0050.00013.30
8.0.120.0030.00516.84
8.0.110.0040.00416.88
8.0.100.0070.00016.95
8.0.90.0040.00416.90
8.0.80.0160.00616.88
8.0.70.0030.00616.90
8.0.60.0050.00316.77
8.0.50.0050.00216.76
8.0.30.0080.01117.09
8.0.20.0070.01217.40
8.0.10.0040.00417.02
8.0.00.0150.00516.93
7.4.330.0050.00015.18
7.4.320.0030.00316.59
7.4.300.0000.00616.49
7.4.290.0030.00416.38
7.4.280.0040.00416.59
7.4.270.0000.00716.61
7.4.260.0000.00816.47
7.4.250.0040.00416.45
7.4.240.0020.00616.59
7.4.230.0000.00716.29
7.4.220.0080.00916.38
7.4.210.0110.01016.60
7.4.200.0040.00416.67
7.4.160.0060.00916.65
7.4.150.0040.01617.40
7.4.140.0040.01217.86
7.4.130.0090.00716.44
7.4.120.0090.00716.51
7.4.110.0040.01316.35
7.4.100.0080.00816.55
7.4.90.0090.01016.59
7.4.80.0150.00519.39
7.4.70.0080.00816.38
7.4.60.0100.00716.32
7.4.50.0040.00416.41
7.4.40.0210.00016.54
7.4.30.0110.01116.46
7.4.00.0090.00814.92
7.3.330.0050.00013.19
7.3.320.0000.00613.23
7.3.310.0070.00016.16
7.3.300.0050.00216.14
7.3.290.0090.00616.18
7.3.280.0100.00616.22
7.3.270.0090.00917.40
7.3.260.0050.01716.14
7.3.250.0110.00616.51
7.3.240.0130.00416.31
7.3.230.0110.00616.39
7.3.210.0090.00916.23
7.3.200.0100.01119.39
7.3.190.0140.00316.20
7.3.180.0110.00416.32
7.3.170.0120.00616.54
7.3.160.0140.00416.25
7.3.120.0100.01014.66
7.3.110.0100.01014.80
7.3.100.0040.00814.20
7.3.90.0090.00614.94
7.3.80.0070.00314.40
7.3.70.0030.01014.66
7.3.60.0090.00914.55
7.3.50.0000.01214.58
7.3.40.0110.00314.40
7.3.30.0090.00614.56
7.3.20.0030.01316.51
7.3.10.0070.00716.32
7.3.00.0060.00916.44
7.2.330.0100.01016.37
7.2.320.0060.01516.28
7.2.310.0060.01416.68
7.2.300.0030.01416.74
7.2.290.0160.00616.52
7.2.250.0100.01014.72
7.2.240.0100.01015.13
7.2.230.0000.01114.79
7.2.220.0070.00714.89
7.2.210.0070.00715.00
7.2.200.0110.00015.05
7.2.190.0000.01214.93
7.2.180.0040.01214.71
7.2.170.0050.00914.68
7.1.330.0000.00915.62
7.1.320.0080.00415.49
7.1.310.0030.01215.55
7.1.300.0040.01115.33
7.1.290.0030.01215.71
7.1.280.0040.00415.90
7.1.270.0070.00715.74
7.1.260.0060.00615.70
7.1.70.0100.01017.14
7.1.60.0070.01319.61
7.1.50.0140.01416.64
7.1.00.0030.07722.57
7.0.200.0040.00416.73
7.0.140.0030.07321.95
7.0.60.0100.04020.02
7.0.50.0030.08717.88
7.0.40.0130.07020.30
7.0.30.0170.04720.16
7.0.20.0330.05020.16
7.0.10.0100.05020.14
7.0.00.0070.03720.25
5.6.280.0070.07021.06
5.6.210.0200.07020.73
5.6.200.0100.08018.27
5.6.190.0000.08320.61
5.6.180.0470.07720.68
5.6.170.0370.04720.71
5.6.160.0030.06720.47
5.6.150.0070.08018.12
5.6.140.0030.04318.18
5.6.130.0100.07718.14
5.6.120.0070.03720.96
5.6.110.0130.08021.12
5.6.100.0000.06020.89
5.6.90.0070.08720.97
5.6.80.0130.02720.52
5.5.350.0200.07020.43
5.5.340.0130.06318.06
5.5.330.0070.07720.40
5.5.320.0330.06020.31
5.5.310.0270.07720.35
5.5.300.0100.07317.95
5.5.290.0000.05717.95
5.5.280.0200.06720.86
5.5.270.0030.08320.75
5.5.260.0070.07320.97
5.5.250.0170.08020.58
5.5.240.0130.08320.26
5.4.450.0230.05719.49
5.4.440.0200.03719.56
5.4.430.0170.03319.63
5.4.420.0270.04319.64
5.4.410.0130.04319.07
5.4.400.0130.04318.95
5.4.390.0230.04019.13
5.4.380.0300.06018.69
5.4.370.0300.05018.55
5.4.360.0370.05318.57
5.4.350.0370.04718.48
5.4.340.0370.05018.80
5.4.320.0060.04412.51
5.4.310.0060.03712.50
5.4.300.0040.03812.51
5.4.290.0050.03912.50
5.4.280.0070.03412.40
5.4.270.0040.03812.40
5.4.260.0030.04012.40
5.4.250.0060.03912.39
5.4.240.0060.03712.40
5.4.230.0070.03812.39
5.4.220.0060.03712.39
5.4.210.0100.03212.39
5.4.200.0130.03212.39
5.4.190.0060.03612.39
5.4.180.0060.03712.39
5.4.170.0070.03612.40
5.4.160.0040.03912.39
5.4.150.0070.03612.39
5.4.140.0110.03312.08
5.4.130.0110.03012.06
5.4.120.0100.03212.02
5.4.110.0080.03412.02
5.4.100.0070.03412.02
5.4.90.0050.03812.02
5.4.80.0060.03812.02
5.4.70.0090.03612.01
5.4.60.0080.04712.01
5.4.50.0070.04912.01
5.4.40.0090.03412.00
5.4.30.0050.03812.00
5.4.20.0080.03512.00
5.4.10.0050.04012.00
5.4.00.0090.05011.48
5.3.290.0100.03712.80
5.3.280.0050.04012.71
5.3.270.0060.04012.73
5.3.260.0080.03812.72
5.3.250.0070.03812.72
5.3.240.0050.03912.72
5.3.230.0070.04812.71
5.3.220.0070.05312.68
5.3.210.0120.05012.68
5.3.200.0130.04512.68
5.3.190.0080.03612.68
5.3.180.0080.03412.68
5.3.170.0110.03312.67
5.3.160.0040.03912.68
5.3.150.0090.04012.68
5.3.140.0050.03712.66
5.3.130.0070.03712.66
5.3.120.0060.03912.66
5.3.110.0070.03812.66
5.3.100.0070.03612.12
5.3.90.0060.03712.10
5.3.80.0070.03512.10
5.3.70.0050.03612.10
5.3.60.0120.03012.07
5.3.50.0030.03812.03
5.3.40.0050.03712.03
5.3.30.0050.03811.98
5.3.20.0100.03211.77
5.3.10.0080.04211.73
5.3.00.0060.03711.72
5.2.170.0020.0349.22
5.2.160.0050.0299.23
5.2.150.0050.0319.23
5.2.140.0080.0309.22
5.2.130.0060.0279.18
5.2.120.0050.0299.18
5.2.110.0050.0409.19
5.2.100.0110.0339.18
5.2.90.0110.0379.18
5.2.80.0120.0389.17
5.2.70.0050.0459.18
5.2.60.0110.0429.13
5.2.50.0070.0339.10
5.2.40.0110.0929.07
5.2.30.0050.0329.05
5.2.20.0060.0309.03
5.2.10.0090.0248.94
5.2.00.0090.0398.80
5.1.60.0080.0268.09
5.1.50.0090.0308.09
5.1.40.0040.0348.07
5.1.30.0040.0268.41
5.1.20.0060.0258.45
5.1.10.0030.0268.17
5.1.00.0060.0258.17
5.0.50.0040.0246.64
5.0.40.0040.0196.50
5.0.30.0020.0336.32
5.0.20.0020.0216.27
5.0.10.0020.0216.25
5.0.00.0030.0326.25
4.4.90.0060.0124.78
4.4.80.0020.0174.76
4.4.70.0030.0154.76
4.4.60.0030.0154.75
4.4.50.0030.0164.77
4.4.40.0040.0344.71
4.4.30.0040.0174.76
4.4.20.0030.0164.84
4.4.10.0020.0194.85
4.4.00.0050.0324.76
4.3.110.0040.0284.67
4.3.100.0010.0184.66
4.3.90.0050.0134.64
4.3.80.0030.0244.59
4.3.70.0030.0144.63
4.3.60.0040.0194.62
4.3.50.0020.0174.63
4.3.40.0020.0344.54
4.3.30.0030.0213.30
4.3.20.0030.0163.28
4.3.10.0050.0203.24
4.3.00.0230.01318.16

preferences:
41.36 ms | 401 KiB | 5 Q