3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function testFunc($name) { echo "hello " . $name . ' !!'; } } class B { public function testAnotherFunc($funcName) { $funcName('Percy'); } } $b = new B(); $b->testAnotherFunc('A::testFunc');

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.0070.00716.63
8.3.50.0190.00922.00
8.3.40.0140.00418.67
8.3.30.0120.00318.95
8.3.20.0070.00020.31
8.3.10.0080.00023.52
8.3.00.0060.00319.13
8.2.180.0090.00918.16
8.2.170.0140.00422.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00422.12
8.2.110.0040.00721.03
8.2.100.0040.00817.72
8.2.90.0000.00819.05
8.2.80.0050.00317.97
8.2.70.0030.00617.75
8.2.60.0040.00418.04
8.2.50.0030.00518.07
8.2.40.0040.00418.32
8.2.30.0040.00418.04
8.2.20.0000.00717.77
8.2.10.0040.00417.92
8.2.00.0100.00017.73
8.1.280.0070.00725.92
8.1.270.0080.00021.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01019.27
8.1.230.0040.00818.89
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.34
8.1.190.0050.00317.43
8.1.180.0000.00918.10
8.1.170.0050.00318.56
8.1.160.0000.00721.91
8.1.150.0000.00718.50
8.1.140.0040.00417.39
8.1.130.0030.00317.82
8.1.120.0000.00717.43
8.1.110.0030.00517.48
8.1.100.0050.00317.42
8.1.90.0040.00417.41
8.1.80.0000.00817.51
8.1.70.0040.00417.38
8.1.60.0040.00417.63
8.1.50.0050.00317.46
8.1.40.0070.00017.41
8.1.30.0060.00317.59
8.1.20.0040.00417.60
8.1.10.0060.00317.53
8.1.00.0030.00617.55
8.0.300.0000.00718.77
8.0.290.0040.00417.04
8.0.280.0000.00718.42
8.0.270.0000.00717.27
8.0.260.0030.00317.24
8.0.250.0030.00316.86
8.0.240.0040.00416.90
8.0.230.0030.00316.83
8.0.220.0040.00416.85
8.0.210.0070.00016.85
8.0.200.0000.00716.91
8.0.190.0030.00316.81
8.0.180.0000.00816.82
8.0.170.0040.00416.94
8.0.160.0040.00316.89
8.0.150.0000.00716.72
8.0.140.0000.00716.71
8.0.130.0040.00413.27
8.0.120.0040.00416.77
8.0.110.0040.00416.90
8.0.100.0030.00516.86
8.0.90.0040.00416.77
8.0.80.0150.00416.94
8.0.70.0040.00416.92
8.0.60.0050.00316.65
8.0.50.0080.00016.68
8.0.30.0070.01117.02
8.0.20.0070.01117.40
8.0.10.0000.00716.90
8.0.00.0120.00716.68
7.4.330.0050.00015.00
7.4.320.0030.00316.43
7.4.300.0060.00016.50
7.4.290.0030.00316.48
7.4.280.0080.00016.39
7.4.270.0030.00516.50
7.4.260.0050.00216.45
7.4.250.0000.00816.31
7.4.240.0030.00416.61
7.4.230.0000.00716.61
7.4.220.0100.00716.55
7.4.210.0080.00716.54
7.4.200.0030.00316.60
7.4.190.0000.00716.56
7.4.160.0100.01016.57
7.4.150.0140.00417.40
7.4.140.0070.00917.86
7.4.130.0120.00416.48
7.4.120.0110.01016.37
7.4.110.0090.00916.30
7.4.100.0110.00716.41
7.4.90.0070.01416.45
7.4.80.0090.01219.39
7.4.70.0130.00316.40
7.4.60.0090.01516.50
7.4.50.0030.00516.52
7.4.40.0030.01022.77
7.4.30.0060.01016.19
7.4.00.0090.00814.93
7.3.330.0060.00013.38
7.3.320.0060.00013.16
7.3.310.0000.00716.17
7.3.300.0040.00216.35
7.3.290.0060.01416.32
7.3.280.0080.01016.30
7.3.270.0040.01317.40
7.3.260.0100.00716.44
7.3.250.0060.01316.40
7.3.240.0130.00316.22
7.3.230.0140.00816.39
7.3.210.0100.00716.33
7.3.200.0070.01119.39
7.3.190.0100.00716.32
7.3.180.0000.01516.17
7.3.170.0090.00616.38
7.3.160.0110.00616.32
7.3.120.0070.01014.69
7.3.110.0090.00814.79
7.3.100.0050.00914.93
7.3.90.0070.00414.90
7.3.80.0050.01014.82
7.3.70.0100.00614.64
7.3.60.0070.00714.66
7.3.50.0040.00814.72
7.3.40.0060.00814.66
7.3.30.0020.01214.73
7.3.20.0040.01016.50
7.3.10.0090.00216.66
7.3.00.0070.00616.65
7.2.330.0100.00716.49
7.2.320.0140.00416.62
7.2.310.0030.01416.44
7.2.300.0030.01316.42
7.2.290.0070.01316.53
7.2.250.0080.01015.15
7.2.240.0080.01215.13
7.2.230.0070.01114.93
7.2.220.0020.01115.23
7.2.210.0070.00815.16
7.2.200.0020.00915.10
7.2.190.0090.00615.00
7.2.180.0050.00714.93
7.2.170.0040.00814.79
7.2.60.0110.00616.88
7.2.00.0070.00719.28
7.1.330.0060.00715.63
7.1.320.0040.00715.76
7.1.310.0030.01015.73
7.1.300.0110.00315.52
7.1.290.0040.00915.61
7.1.280.0060.00615.78
7.1.270.0030.00815.62
7.1.260.0060.00615.73
7.1.200.0070.00715.76
7.1.100.0060.00617.99
7.1.70.0030.00716.95
7.1.60.0100.01419.33
7.1.50.0110.01116.80
7.1.00.0070.07322.45
7.0.200.0490.00314.65
7.0.140.0030.07322.16
7.0.60.0070.08319.93
7.0.50.0070.08017.94
7.0.40.0100.07020.18
7.0.30.0200.05320.34
7.0.20.0270.05720.15
7.0.10.0100.07020.22
7.0.00.0000.04320.16
5.6.280.0030.07320.91
5.6.210.0030.08720.51
5.6.200.0030.05018.19
5.6.190.0070.06320.47
5.6.180.0230.07320.52
5.6.170.0200.03720.45
5.6.160.0000.04320.57
5.6.150.0000.04718.15
5.6.140.0130.06318.12
5.6.130.0200.06718.29
5.6.120.0000.07021.07
5.6.110.0070.04020.89
5.6.100.0130.06720.98
5.6.90.0130.07721.00
5.6.80.0030.07020.38
5.5.350.0130.06020.40
5.5.340.0130.07718.09
5.5.330.0070.07320.35
5.5.320.0070.09020.34
5.5.310.0270.05720.34
5.5.300.0000.06717.99
5.5.290.0100.04717.98
5.5.280.0030.04320.80
5.5.270.0030.08720.87
5.5.260.0100.08020.80
5.5.250.0030.07020.59
5.5.240.3000.04320.16
5.4.450.0070.07019.61
5.4.440.0030.06319.63
5.4.430.0130.05319.33
5.4.420.0070.06319.47
5.4.410.0130.05019.42
5.4.400.0070.05719.29
5.4.390.0170.05018.89
5.4.380.0330.06318.75
5.4.370.0500.05718.50
5.4.360.0330.07318.47
5.4.350.0330.05718.70
5.4.340.0500.06318.74
5.4.320.0070.03612.50
5.4.310.0070.04012.49
5.4.300.0090.04412.50
5.4.290.0070.04312.50
5.4.280.0090.03512.40
5.4.270.0080.03512.39
5.4.260.0070.04512.39
5.4.250.0040.04512.39
5.4.240.0090.04212.39
5.4.230.0050.04312.39
5.4.220.0080.03412.39
5.4.210.0060.03612.39
5.4.200.0100.03812.39
5.4.190.0160.04412.36
5.4.180.0160.04112.36
5.4.170.0150.04312.38
5.4.160.0180.07212.37
5.4.150.0120.04612.36
5.4.140.0130.04412.05
5.4.130.0110.04712.04
5.4.120.0130.04312.00
5.4.110.0130.04411.99
5.4.100.0110.04811.98
5.4.90.0190.03711.98
5.4.80.0130.04311.98
5.4.70.0150.04011.99
5.4.60.0180.03811.98
5.4.50.0170.06911.98
5.4.40.0150.04211.97
5.4.30.0110.04711.97
5.4.20.0150.04111.97
5.4.10.0400.07811.97
5.4.00.0130.04211.46
5.3.290.0060.04712.80
5.3.280.0060.04012.71
5.3.270.0170.04312.72
5.3.260.0190.04212.72
5.3.250.0170.04512.71
5.3.240.0210.07012.72
5.3.230.0150.04912.71
5.3.220.0120.04812.68
5.3.210.0170.04512.68
5.3.200.0150.04712.68
5.3.190.0170.04512.68
5.3.180.0350.08812.67
5.3.170.0130.04712.67
5.3.160.0180.04112.67
5.3.150.0220.04012.68
5.3.140.0140.04912.66
5.3.130.0220.04112.66
5.3.120.0260.06412.66
5.3.110.0170.04512.66
5.3.100.0160.04512.12
5.3.90.0180.04912.09
5.3.80.0210.04112.07
5.3.70.0210.03912.08
5.3.60.0210.06912.07
5.3.50.0330.05912.00
5.3.40.0160.04412.00
5.3.30.0190.03911.97
5.3.20.0170.04111.75
5.3.10.0140.04311.71
5.3.00.0170.03911.70
5.2.170.0130.0339.20
5.2.160.0220.0559.20
5.2.150.0110.0359.20
5.2.140.0150.0329.20
5.2.130.0130.0349.15
5.2.120.0090.0379.16
5.2.110.0110.0359.16
5.2.100.0130.0339.16
5.2.90.0140.0319.16
5.2.80.0150.0369.15
5.2.70.0110.0369.16
5.2.60.0100.0389.11
5.2.50.0300.0789.07
5.2.40.0130.0349.05
5.2.30.0160.0309.03
5.2.20.0090.0389.03
5.2.10.0170.0338.92
5.2.00.0120.0338.78
5.1.60.0100.0288.06
5.1.50.0100.0318.06
5.1.40.0130.0268.05
5.1.30.0130.0328.39
5.1.20.0170.0278.43
5.1.10.0130.0308.14
5.1.00.0110.0308.14
5.0.50.0200.0436.62
5.0.40.0080.0236.48
5.0.30.0100.0346.29
5.0.20.0130.0206.27
5.0.10.0110.0206.24
5.0.00.0150.0596.23
4.4.90.0090.0164.78
4.4.80.0330.0574.75
4.4.70.0050.0214.75
4.4.60.0090.0184.76
4.4.50.0090.0154.77
4.4.40.0080.0304.71
4.4.30.0080.0184.76
4.4.20.0050.0204.85
4.4.10.0070.0184.85
4.4.00.0050.0314.76
4.3.110.0080.0204.67
4.3.100.0060.0194.67
4.3.90.0070.0174.63
4.3.80.0070.0274.58
4.3.70.0060.0184.63
4.3.60.0070.0164.63
4.3.50.0060.0184.62
4.3.40.0070.0264.54
4.3.30.0080.0153.30
4.3.20.0060.0173.28
4.3.10.0030.0203.24
4.3.00.0030.0238.89

preferences:
83.45 ms | 401 KiB | 5 Q