3v4l.org

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

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.0150.00016.50
8.3.50.0160.00516.61
8.3.40.0110.00418.76
8.3.30.0070.00718.63
8.3.20.0080.00018.63
8.3.10.0050.01418.54
8.3.00.0050.00319.38
8.2.180.0140.00718.45
8.2.170.0110.00422.96
8.2.160.0070.00720.53
8.2.150.0050.00224.18
8.2.140.0120.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00520.94
8.2.110.0060.00320.24
8.2.100.0030.00819.35
8.2.90.0000.00917.63
8.2.80.0000.00818.66
8.2.70.0050.00317.50
8.2.60.0040.00417.91
8.2.50.0070.00318.07
8.2.40.0000.00819.00
8.2.30.0060.00317.51
8.2.20.0060.00317.53
8.2.10.0000.00717.62
8.2.00.0040.00417.77
8.1.280.0120.00625.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01022.05
8.1.230.0060.00617.77
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0090.00018.83
8.1.160.0050.00318.92
8.1.150.0000.00818.54
8.1.140.0000.00717.34
8.1.130.0040.00419.04
8.1.120.0040.00417.29
8.1.110.0040.00417.41
8.1.100.0040.00417.38
8.1.90.0000.00817.36
8.1.80.0030.00317.35
8.1.70.0000.00717.29
8.1.60.0000.00717.50
8.1.50.0000.00817.45
8.1.40.0040.00417.52
8.1.30.0060.00317.67
8.1.20.0000.00817.68
8.1.10.0060.00317.53
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0090.00016.58
8.0.280.0000.00818.57
8.0.270.0030.00317.14
8.0.260.0000.00816.89
8.0.250.0030.00617.00
8.0.240.0030.00316.96
8.0.230.0050.00316.86
8.0.220.0050.00216.85
8.0.210.0050.00216.90
8.0.200.0070.00016.94
8.0.190.0030.00316.87
8.0.180.0000.00816.83
8.0.170.0070.00016.90
8.0.160.0050.00316.81
8.0.150.0050.00316.82
8.0.140.0000.00716.85
8.0.130.0000.00513.35
8.0.120.0060.00316.88
8.0.110.0030.00316.88
8.0.100.0050.00216.84
8.0.90.0000.00816.79
8.0.80.0070.00816.90
8.0.70.0000.00816.94
8.0.60.0030.00616.78
8.0.50.0040.00416.83
8.0.30.0110.00717.08
8.0.20.0100.01516.87
8.0.10.0070.00017.00
8.0.00.0130.00416.70
7.4.330.0050.00012.93
7.4.320.0030.00316.50
7.4.300.0040.00416.61
7.4.290.0000.00716.52
7.4.280.0070.00016.62
7.4.270.0060.00016.60
7.4.260.0000.00816.39
7.4.250.0060.00316.42
7.4.240.0040.00416.59
7.4.230.0040.00416.57
7.4.220.0070.01016.55
7.4.210.0150.00616.51
7.4.200.0030.00516.55
7.4.190.0040.00416.69
7.4.160.0130.00716.39
7.4.150.0130.01316.45
7.4.140.0070.01117.86
7.4.130.0100.01016.44
7.4.120.0090.00916.41
7.4.110.0070.01316.39
7.4.100.0140.00416.39
7.4.90.0090.00916.57
7.4.80.0070.01319.39
7.4.70.0120.00516.60
7.4.60.0070.01016.27
7.4.50.0030.00316.27
7.4.40.0150.00016.36
7.4.30.0130.00416.48
7.4.00.0070.00814.92
7.3.330.0070.00013.15
7.3.320.0030.00313.23
7.3.310.0030.00316.12
7.3.300.0030.00316.31
7.3.290.0040.01216.29
7.3.280.0150.00016.32
7.3.270.0240.03116.55
7.3.260.0150.00616.31
7.3.240.0060.01016.30
7.3.230.0130.01016.27
7.3.210.0140.00316.50
7.3.200.0090.00916.48
7.3.190.0130.00316.64
7.3.180.0060.01216.28
7.3.170.0100.00716.32
7.3.160.0150.00716.17
7.3.120.0070.00814.90
7.3.110.0090.00914.54
7.3.100.0090.00614.80
7.3.90.0040.00714.98
7.3.80.0090.00614.58
7.3.70.0090.00614.55
7.3.60.0060.00914.72
7.3.50.0080.00414.87
7.3.40.0000.01414.64
7.3.30.0030.00914.75
7.3.20.0030.01016.69
7.3.10.0000.01416.58
7.3.00.0100.00716.86
7.2.330.0140.00316.24
7.2.320.0090.01216.57
7.2.310.0100.00716.63
7.2.300.0110.00516.61
7.2.290.0030.01416.64
7.2.250.0030.01314.50
7.2.240.0030.01314.87
7.2.230.0000.01614.74
7.2.220.0000.01214.82
7.2.210.0060.00915.07
7.2.200.0100.00714.53
7.2.190.0070.00714.88
7.2.180.0040.01114.65
7.2.170.0060.01014.61
7.2.80.0030.00916.36
7.2.60.0030.00916.59
7.1.330.0080.00815.65
7.1.320.0060.00815.67
7.1.310.0030.01315.79
7.1.300.0110.00415.54
7.1.290.0030.01315.78
7.1.280.0040.00815.82
7.1.270.0000.01315.79
7.1.260.0080.00815.56
7.1.200.0030.01015.73
7.1.70.0030.00717.31
7.1.60.0060.01819.25
7.1.50.0130.00634.79
7.1.00.0130.06322.37
7.0.200.0000.00716.39
7.0.140.0030.07322.08
7.0.120.0030.06722.09
7.0.60.0030.08019.92
7.0.50.0070.08317.86
7.0.40.0000.08020.14
7.0.30.0300.07320.30
7.0.20.0130.09020.09
7.0.10.0230.06020.24
7.0.00.0070.08320.08
5.6.280.0030.07721.04
5.6.210.0130.07020.72
5.6.200.0030.06318.16
5.6.190.0100.08320.60
5.6.180.0270.06320.42
5.6.170.0270.08320.43
5.6.160.0000.04320.43
5.6.150.0070.04318.17
5.6.140.0070.07018.16
5.6.130.0100.07018.12
5.6.120.0130.07721.14
5.6.110.0100.07021.14
5.6.100.0100.08321.04
5.6.90.0100.04021.08
5.6.80.0170.06720.49
5.6.70.4400.04320.41
5.5.350.0200.04020.52
5.5.340.0000.04317.99
5.5.330.0000.04320.44
5.5.320.0170.04020.44
5.5.310.0270.07720.23
5.5.300.0070.06718.08
5.5.290.0100.08017.93
5.5.280.0030.06720.88
5.5.270.0130.03720.84
5.5.260.0070.08320.80
5.5.250.0030.07020.70
5.5.240.0170.08020.19
5.4.450.0000.04019.18
5.4.440.0170.04019.34
5.4.430.0000.05719.53
5.4.420.0030.04019.56
5.4.410.0000.04319.31
5.4.400.0030.04319.15
5.4.390.0070.06718.98
5.4.380.0070.04719.00
5.4.370.0100.08018.87
5.4.360.0100.07019.15
5.4.350.0070.06318.99
5.4.340.0030.04719.20
5.4.320.0130.07019.20
5.4.310.0030.04019.12
5.4.300.0070.08018.85
5.4.290.0070.08018.91
5.4.280.0130.07019.14
5.4.270.0030.05319.14
5.4.260.0170.04719.26
5.4.250.0130.07019.11
5.4.240.0070.06718.84
5.4.230.0070.06019.23
5.4.220.0070.04719.14
5.4.210.0100.07019.11
5.4.200.0070.06318.97
5.4.190.0200.05318.85
5.4.180.0100.07019.23
5.4.170.0030.08019.23
5.4.160.0030.08319.20
5.4.150.0130.06018.98
5.4.140.0030.05716.35
5.4.130.0130.06716.40
5.4.120.0070.04716.46
5.4.110.0070.04016.48
5.4.100.0100.03716.71
5.4.90.0100.03016.48
5.4.80.0030.03716.34
5.4.70.0030.05016.49
5.4.60.0100.06316.38
5.4.50.0000.05316.37
5.4.40.0030.07016.38
5.4.30.0100.06716.43
5.4.20.0070.05016.24
5.4.10.0070.07316.38
5.4.00.0100.06715.76
5.3.290.0100.07014.66
5.3.280.0070.03714.48
5.3.270.0070.08314.62
5.3.260.0070.06014.52
5.3.250.0070.04314.62
5.3.240.0030.07714.65
5.3.230.0070.07314.63
5.3.220.0000.08314.55
5.3.210.0030.07314.61
5.3.200.0130.04014.63
5.3.190.0030.04014.59
5.3.180.0070.04314.56
5.3.170.0030.08314.61
5.3.160.0070.08014.58
5.3.150.0070.07314.61
5.3.140.0000.04714.47
5.3.130.0130.06314.54
5.3.120.0070.07014.55
5.3.110.0070.04714.54
5.3.100.0130.04014.05
5.3.90.0030.07013.93
5.3.80.0000.04714.08
5.3.70.0100.07314.08
5.3.60.0030.04014.08
5.3.50.0100.03713.95
5.3.40.0070.07713.92
5.3.30.0170.04013.86
5.3.20.0100.07013.62
5.3.10.0130.07313.66
5.3.00.0130.06313.53
5.2.170.0070.06011.20
5.2.160.0100.06311.16
5.2.150.0070.06011.30
5.2.140.0100.03011.16
5.2.130.0030.04311.11
5.2.120.0030.03311.26
5.2.110.0070.03311.18
5.2.100.0030.04311.05
5.2.90.0030.06011.16
5.2.80.0070.06011.17
5.2.70.0030.03711.17
5.2.60.0030.06010.98
5.2.50.0070.03711.10
5.2.40.0070.03311.01
5.2.30.0070.06010.95
5.2.20.0070.04311.02
5.2.10.0000.04310.93
5.2.00.0000.03310.79
5.1.60.0070.02010.02
5.1.50.0000.06010.07
5.1.40.0000.0379.95
5.1.30.0030.03310.38
5.1.20.0000.03710.35
5.1.10.0100.04310.06
5.1.00.0070.05310.08
5.0.50.0000.0338.46
5.0.40.0070.0408.43
5.0.30.0070.0608.30
5.0.20.0030.0438.30
5.0.10.0070.0408.30
5.0.00.0030.0508.32
4.4.90.0030.0378.30
4.4.80.0100.0238.30
4.4.70.0030.0378.30
4.4.60.0000.0378.30
4.4.50.0000.0378.30
4.4.40.0030.0238.30
4.4.30.0030.0238.30
4.4.20.0000.0338.30
4.4.10.0000.0378.30
4.4.00.0000.0378.30
4.3.110.0000.0338.30
4.3.100.0030.0278.30
4.3.90.0030.0308.30
4.3.80.0100.0508.30
4.3.70.0030.0308.30
4.3.60.0030.0208.30
4.3.50.0000.0278.30
4.3.40.0000.0508.30
4.3.30.0000.0408.30
4.3.20.0070.0208.30
4.3.10.0000.0378.30
4.3.00.0000.0278.30

preferences:
58.44 ms | 401 KiB | 5 Q