3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() { return 'foobar'; } } class FooParent extends Foo { } $callable = [FooParent::class, 'Foo::bar']; var_dump(\is_callable($callable)); var_dump(\call_user_func($callable) === 'foobar'); // Fail $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.0120.00618.43
8.3.50.0150.00416.30
8.3.40.0150.00318.55
8.3.30.0070.00718.59
8.3.20.0000.00820.29
8.3.10.0080.00021.82
8.3.00.0080.00019.25
8.2.180.0120.00318.29
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.36
8.2.110.0030.00622.26
8.2.100.0120.00017.72
8.2.90.0000.00917.63
8.2.80.0050.00318.73
8.2.70.0040.00417.91
8.2.60.0070.00018.22
8.2.50.0020.00519.25
8.2.40.0000.00821.02
8.2.30.0000.00719.06
8.2.20.0030.00617.96
8.2.10.0020.00517.99
8.2.00.0000.00718.12
8.1.280.0040.01525.92
8.1.270.0040.00419.95
8.1.260.0000.00826.35
8.1.250.0070.00728.09
8.1.240.0030.00623.99
8.1.230.0080.00417.83
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0040.00417.00
8.1.180.0080.00018.96
8.1.170.0060.00318.54
8.1.160.0040.00718.91
8.1.150.0060.00318.80
8.1.140.0000.00717.63
8.1.130.0030.00318.72
8.1.120.0070.00017.37
8.1.110.0040.00417.28
8.1.100.0040.00417.40
8.1.90.0000.00817.41
8.1.80.0030.00617.43
8.1.70.0000.00717.40
8.1.60.0040.00417.48
8.1.50.0030.00817.35
8.1.40.0090.00017.51
8.1.30.0040.00417.65
8.1.20.0040.00417.62
8.1.10.0040.00417.55
8.1.00.0050.00217.57
8.0.300.0060.00318.77
8.0.290.0080.00016.63
8.0.280.0030.00318.29
8.0.270.0070.00017.06
8.0.260.0000.00718.99
8.0.250.0000.00716.96
8.0.240.0030.00616.93
8.0.230.0040.00416.93
8.0.220.0000.00716.88
8.0.210.0000.00716.89
8.0.200.0030.00316.86
8.0.190.0040.00416.95
8.0.180.0030.00317.00
8.0.170.0040.00416.80
8.0.160.0050.00316.85
8.0.150.0070.00016.89
8.0.140.0030.00316.84
8.0.130.0030.00313.32
8.0.120.0070.00016.85
8.0.110.0040.00416.77
8.0.100.0050.00316.79
8.0.90.0000.00716.96
8.0.80.0120.00316.88
8.0.70.0040.00416.87
8.0.60.0040.00416.76
8.0.50.0040.00416.68
8.0.30.0090.00916.88
8.0.20.0120.00817.40
8.0.10.0040.00416.88
8.0.00.0090.00916.69
7.4.330.0020.00215.55
7.4.320.0080.00016.62
7.4.300.0000.00616.47
7.4.290.0070.00016.39
7.4.280.0070.00016.43
7.4.270.0050.00316.55
7.4.260.0030.00316.57
7.4.250.0030.00616.61
7.4.240.0030.00516.59
7.4.230.0080.00016.38
7.4.220.0000.00816.58
7.4.210.0120.00316.48
7.4.200.0000.00716.59
7.4.160.0050.01216.50
7.4.150.0120.00617.40
7.4.140.0100.01117.86
7.4.130.0150.00416.59
7.4.120.0110.01016.60
7.4.110.0090.00616.72
7.4.100.0100.01016.45
7.4.90.0080.01516.55
7.4.80.0150.01219.39
7.4.70.0160.00616.51
7.4.60.0040.01316.58
7.4.50.0110.00716.41
7.4.40.0040.01216.60
7.4.00.0100.00514.93
7.3.330.0000.00513.23
7.3.320.0060.00013.35
7.3.310.0070.00016.18
7.3.300.0040.00416.31
7.3.290.0070.00916.37
7.3.280.0070.01116.33
7.3.270.0130.00317.40
7.3.260.0100.00916.41
7.3.250.0100.00916.54
7.3.240.0130.00616.52
7.3.230.0110.00716.50
7.3.210.0030.01316.50
7.3.200.0060.01616.64
7.3.190.0090.00916.64
7.3.180.0060.00916.39
7.3.170.0100.00716.61
7.3.160.0150.00016.31
7.3.120.0050.01014.58
7.3.110.0110.00714.81
7.3.100.0020.01214.80
7.3.90.0080.00515.01
7.3.80.0070.00514.87
7.3.70.0040.01014.66
7.3.60.0060.00714.73
7.3.50.0070.00814.72
7.3.40.0090.00714.66
7.3.30.0080.00514.82
7.3.20.0050.00516.71
7.3.10.0020.01316.62
7.3.00.0080.00716.55
7.2.330.0090.00916.64
7.2.320.0030.01216.53
7.2.310.0100.01416.68
7.2.300.0100.00716.77
7.2.290.0130.00316.47
7.2.250.0110.00614.79
7.2.240.0050.01315.10
7.2.230.0040.01214.65
7.2.220.0050.01015.04
7.2.210.0050.00614.79
7.2.200.0020.00914.81
7.2.190.0090.00714.83
7.2.180.0050.00714.96
7.2.170.0060.01114.76
7.2.60.0060.00617.02
7.2.50.0070.00716.96
7.2.10.0320.01918.01
7.2.00.0330.00918.03
7.1.330.0070.00715.55
7.1.320.0070.00715.94
7.1.310.0050.00915.77
7.1.300.0050.00815.73
7.1.290.0040.01015.73
7.1.280.0050.01015.66
7.1.270.0070.00715.61
7.1.260.0100.00415.71
7.1.200.0030.01015.83
7.1.130.0260.01416.38
7.1.120.0340.01316.70
7.1.110.0240.01216.50
7.1.100.0260.01416.09
7.1.90.0280.01616.09
7.1.80.0300.01116.10
7.1.70.0330.01315.18
7.1.60.0500.01033.25
7.1.50.0510.01432.86
7.1.40.0360.02032.47
7.1.30.0450.01732.48
7.1.20.0400.01332.62
7.1.10.0340.01214.68
7.1.00.0560.01414.84

preferences:
63.05 ms | 401 KiB | 5 Q