3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() { return __METHOD__; } } function call(callable $func) { $func(); } // works $callable = array('Foo', 'bar'); var_dump($callableArr()); var_dump(call($callableArr())); // Call to undefined function Foo::bar() $callable = 'Foo::bar'; // var_dump($callableStr()); var_dump(call($callableStr()));

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.00716.50
8.3.50.0130.00716.46
8.3.40.0120.00318.97
8.3.30.0060.00818.79
8.3.20.0050.00318.85
8.3.10.0050.00520.67
8.3.00.0040.00419.25
8.2.180.0080.00816.63
8.2.170.0140.00322.96
8.2.160.0100.00320.55
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00421.05
8.2.110.0030.00622.12
8.2.100.0050.00517.72
8.2.90.0030.00617.98
8.2.80.0000.00917.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00718.00
8.2.30.0040.00417.91
8.2.20.0000.00817.56
8.2.10.0040.00417.61
8.2.00.0040.00417.68
8.1.280.0060.00925.92
8.1.270.0030.00524.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0050.00520.63
8.1.230.0110.00020.85
8.1.220.0000.00817.79
8.1.210.0050.00318.78
8.1.200.0060.00317.36
8.1.190.0070.00017.39
8.1.180.0080.00018.10
8.1.170.0030.00720.69
8.1.160.0020.00518.87
8.1.150.0040.00418.58
8.1.140.0000.00817.40
8.1.130.0000.00817.70
8.1.120.0000.00717.32
8.1.110.0040.00417.38
8.1.100.0080.00017.33
8.1.90.0040.00417.41
8.1.80.0000.00717.36
8.1.70.0000.00717.32
8.1.60.0030.00617.53
8.1.50.0050.00217.39
8.1.40.0040.00417.50
8.1.30.0040.00417.51
8.1.20.0000.00817.48
8.1.10.0000.00717.56
8.1.00.0060.00317.52
8.0.300.0040.00419.90
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0000.00717.09
8.0.260.0030.00316.76
8.0.250.0030.00316.98
8.0.240.0070.00016.97
8.0.230.0030.00316.98
8.0.220.0070.00016.92
8.0.210.0030.00316.91
8.0.200.0030.00316.95
8.0.190.0040.00416.95
8.0.180.0040.00416.88
8.0.170.0030.00616.80
8.0.160.0030.00316.95
8.0.150.0030.00616.79
8.0.140.0070.00016.87
8.0.130.0060.00013.32
8.0.120.0040.00416.76
8.0.110.0000.00716.88
8.0.100.0000.00716.89
8.0.90.0040.00416.91
8.0.80.0060.00916.93
8.0.70.0040.00316.84
8.0.60.0040.00416.85
8.0.50.0000.00716.89
8.0.30.0030.01616.94
8.0.20.0060.01317.01
8.0.10.0070.00016.84
8.0.00.0110.00716.74
7.4.330.0020.00212.91
7.4.320.0060.00016.59
7.4.300.0030.00316.52
7.4.290.0000.00816.57
7.4.280.0000.00816.64
7.4.270.0000.00816.41
7.4.260.0000.00613.32
7.4.250.0030.00616.43
7.4.240.0000.00716.42
7.4.230.0030.00316.51
7.4.220.0250.01216.55
7.4.210.0080.00616.56
7.4.200.0000.00716.53
7.4.190.0080.00016.65
7.4.160.0140.00316.58
7.4.150.0180.00016.43
7.4.140.0080.00916.40
7.4.130.0160.01616.45
7.4.120.0080.00816.43
7.4.110.0080.01316.57
7.4.100.0170.00016.41
7.4.90.0060.01216.43
7.4.80.0100.00719.39
7.4.70.0110.00616.62
7.4.60.0060.00916.54
7.4.50.0070.00016.49
7.4.40.0100.00716.39
7.4.30.0030.01216.83
7.4.00.0060.00914.85
7.3.330.0030.00313.30
7.3.320.0030.00313.20
7.3.310.0000.00716.20
7.3.300.0060.00016.16
7.3.290.0090.00916.27
7.3.280.0070.01016.30
7.3.270.0090.00916.53
7.3.260.0110.01116.49
7.3.250.0090.00816.55
7.3.240.0070.01416.48
7.3.230.0120.00416.37
7.3.210.0140.00316.54
7.3.200.0130.00316.46
7.3.190.0150.00716.26
7.3.180.0140.00716.43
7.3.170.0100.01016.44
7.3.160.0060.01616.66
7.3.120.0040.00714.74
7.3.10.0130.00916.04
7.3.00.0140.00616.28
7.2.330.0100.00716.60
7.2.320.0070.01116.51
7.2.310.0150.00616.66
7.2.300.0120.00616.49
7.2.290.0120.00916.29
7.2.130.0110.00816.53
7.2.120.0100.00716.54
7.2.110.0060.00916.55
7.2.100.0070.01016.42
7.2.90.0080.00416.39
7.2.80.0030.01016.58
7.2.70.0090.01216.61
7.2.60.0070.00916.51
7.2.50.0140.00016.80
7.2.40.0030.01016.46
7.2.30.0120.00016.70
7.2.20.0000.01116.46
7.2.10.0090.00616.37
7.2.00.0070.00617.91
7.1.250.0040.01115.30
7.1.200.0060.00615.45
7.1.100.0070.00317.97
7.1.70.0070.01416.91
7.1.60.0100.01419.40
7.1.50.0070.01116.91
7.1.00.0130.06322.33
7.0.200.0040.00416.69
7.0.140.0000.07722.02
7.0.120.0030.07722.08
7.0.60.0170.06719.82
7.0.50.0070.07317.83
7.0.40.0000.06317.84
7.0.30.0100.04017.85
7.0.20.0030.09017.77
7.0.10.0030.08317.74
7.0.00.0030.04717.75
5.6.280.0000.07321.11
5.6.210.0130.07320.57
5.6.200.0030.06018.18
5.6.190.0070.05318.17
5.6.180.0130.07318.12
5.6.170.0000.05018.12
5.6.160.0070.04318.18
5.6.150.0100.08018.29
5.6.140.0070.08018.27
5.6.130.0070.07318.16
5.6.120.0030.06018.14
5.6.110.0100.04718.14
5.6.100.0130.04318.11
5.6.90.0100.04718.25
5.6.80.0000.05317.57
5.6.70.0000.04317.63
5.6.60.0070.07717.61
5.6.50.0130.04017.54
5.6.40.0030.04017.48
5.6.30.0100.03317.59
5.6.20.0100.08017.52
5.6.10.0130.07017.54
5.6.00.0130.06717.56
5.5.350.0270.08320.45
5.5.340.0100.07017.94
5.5.330.0070.08017.98
5.5.320.0100.07717.96
5.5.310.0100.07717.98
5.5.300.0000.05017.92
5.5.290.0030.05717.98
5.5.280.0130.07318.04
5.5.270.0070.08318.04
5.5.260.0100.04318.03
5.5.250.0130.07317.79
5.5.240.0100.07317.38
5.5.230.0000.05717.40
5.5.220.0070.07717.30
5.5.210.0070.05717.34
5.5.200.0130.05717.33
5.5.190.0070.07017.34
5.5.180.0000.05717.29
5.5.160.0070.05317.40
5.5.150.0100.07017.39
5.5.140.0170.06717.29
5.5.130.0070.07317.41
5.5.120.0070.03717.34
5.5.110.0070.03717.36
5.5.100.0070.03717.29
5.5.90.0100.07717.20
5.5.80.0030.05717.30
5.5.70.0030.08017.32
5.5.60.0030.06717.33
5.5.50.0070.04317.23
5.5.40.0000.05717.33
5.5.30.0030.08017.21
5.5.20.0070.04317.15
5.5.10.0130.07017.19
5.5.00.0030.03717.25
5.4.450.0100.04319.45
5.4.440.0170.06719.28
5.4.430.0070.07319.35
5.4.420.0030.07719.37
5.4.410.0230.03019.23
5.4.400.0130.07019.12
5.4.390.0130.05018.99
5.4.380.0100.07018.95
5.4.370.0000.04718.96
5.4.360.0170.07319.02
5.4.350.0070.03719.12
5.4.340.0130.07319.05
5.4.320.0030.06019.02
5.4.310.0030.05718.93
5.4.300.0030.07319.04
5.4.290.0000.07319.31
5.4.280.0070.07319.12
5.4.270.0030.08319.13
5.4.260.0100.06719.00
5.4.250.0030.07719.13
5.4.240.0200.06019.00
5.4.230.0030.07718.94
5.4.220.0100.07719.13
5.4.210.0070.06719.09
5.4.200.0130.06719.04
5.4.190.0130.05718.88
5.4.180.0100.07318.88
5.4.170.0130.07019.04
5.4.160.0100.03319.04
5.4.150.0070.07719.00
5.4.140.0100.04016.48
5.4.130.0130.03316.44
5.4.120.0030.08016.51
5.4.110.0000.08016.47
5.4.100.0000.04716.45
5.4.90.0000.04716.48
5.4.80.0000.06316.46
5.4.70.0030.07316.35
5.4.60.0070.05316.57
5.4.50.0070.06716.29
5.4.40.0070.07716.51
5.4.30.0130.07016.38
5.4.20.0030.08016.44
5.4.10.0070.07016.50
5.4.00.0130.04715.70
5.3.290.0070.06714.64
5.3.280.0070.05014.45
5.3.270.0130.04314.61
5.3.260.0000.04314.64
5.3.250.0030.07314.46
5.3.240.0030.04314.63
5.3.230.0030.08314.66
5.3.220.0030.06714.42
5.3.210.0100.07314.54
5.3.200.0030.05714.42
5.3.190.0000.04314.68
5.3.180.0070.04714.64
5.3.170.0070.04314.62
5.3.160.0070.05314.63
5.3.150.0130.06314.61
5.3.140.0030.08314.67
5.3.130.0070.07714.63
5.3.120.0070.05314.55
5.3.110.0130.07014.59
5.3.100.0100.06314.07
5.3.90.0100.04014.03
5.3.80.0100.07014.02
5.3.70.0130.04714.10
5.3.60.0030.06313.91
5.3.50.0030.04314.00
5.3.40.0100.05013.98
5.3.30.0000.05013.77
5.3.20.0070.03313.59
5.3.10.0100.06713.68
5.3.00.0030.07313.66
5.2.170.0030.05011.18
5.2.160.0070.03011.06
5.2.150.0070.06011.18
5.2.140.0030.03011.18
5.2.130.0100.06011.16
5.2.120.0100.03311.14
5.2.110.0070.06011.15
5.2.100.0070.05011.15
5.2.90.0030.05711.20
5.2.80.0030.04311.09
5.2.70.0070.04710.99
5.2.60.0070.04311.11
5.2.50.0100.06011.10
5.2.40.0070.05011.05
5.2.30.0070.04311.00
5.2.20.0070.03710.95
5.2.10.0100.05310.91
5.2.00.0100.04010.68
5.1.60.0070.05010.21
5.1.50.0070.03310.21
5.1.40.0070.03010.05
5.1.30.0070.03010.38
5.1.20.0100.05010.35
5.1.10.0100.05010.10
5.1.00.0070.03010.28
5.0.50.0070.0478.63
5.0.40.0030.0238.45
5.0.30.0070.0338.20
5.0.20.0030.0238.18
5.0.10.0100.0408.14
5.0.00.0030.0678.25
4.4.90.0000.0277.84
4.4.80.0000.0377.84
4.4.70.0000.0407.84
4.4.60.0030.0377.84
4.4.50.0030.0377.84
4.4.40.0100.0477.84
4.4.30.0030.0337.84
4.4.20.0000.0307.84
4.4.10.0000.0207.84
4.4.00.0030.0407.84
4.3.110.0030.0337.84
4.3.100.0000.0377.84
4.3.90.0000.0207.84
4.3.80.0100.0477.84
4.3.70.0030.0377.84
4.3.60.0000.0377.84
4.3.50.0030.0277.84
4.3.40.0070.0477.84
4.3.30.0000.0407.84
4.3.20.0000.0277.84
4.3.10.0000.0377.84
4.3.00.0000.0377.84

preferences:
41.11 ms | 401 KiB | 5 Q