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, 'parent::bar']; assert(\is_callable($callable)); assert(\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.40.0070.00718.79
8.3.30.0090.00918.59
8.3.20.0070.00720.30
8.3.10.0000.00721.81
8.3.00.0040.00419.26
8.2.170.0040.01422.96
8.2.160.0030.01022.06
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.12
8.2.110.0060.00320.90
8.2.100.0120.00017.72
8.2.90.0040.00417.83
8.2.80.0000.00818.03
8.2.70.0060.00317.80
8.2.60.0040.00417.93
8.2.50.0090.00018.10
8.2.40.0090.00020.78
8.2.30.0040.00419.05
8.2.20.0070.00018.06
8.2.10.0030.00517.98
8.2.00.0000.00718.15
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0090.00320.83
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0100.00017.25
8.1.180.0070.00018.10
8.1.170.0000.00818.50
8.1.160.0000.00818.82
8.1.150.0020.00518.84
8.1.140.0070.00017.61
8.1.130.0000.00718.70
8.1.120.0040.00417.36
8.1.110.0000.00917.38
8.1.100.0000.00717.39
8.1.90.0070.00017.37
8.1.80.0050.00317.32
8.1.70.0050.00217.35
8.1.60.0030.00617.60
8.1.50.0030.00917.55
8.1.40.0020.00517.37
8.1.30.0000.00817.58
8.1.20.0000.00817.68
8.1.10.0000.00717.62
8.1.00.0030.00617.59
8.0.300.0040.00419.77
8.0.290.0040.00416.75
8.0.280.0070.00018.35
8.0.270.0000.00816.75
8.0.260.0000.00818.92
8.0.250.0050.00217.01
8.0.240.0000.00716.87
8.0.230.0000.00716.93
8.0.220.0040.00416.84
8.0.210.0000.00716.85
8.0.200.0030.00616.82
8.0.190.0000.00716.96
8.0.180.0040.00416.81
8.0.170.0080.00016.89
8.0.160.0040.00416.81
8.0.150.0070.00316.72
8.0.140.0080.00016.84
8.0.130.0030.00313.26
8.0.120.0000.01016.91
8.0.110.0000.00916.94
8.0.100.0020.00516.74
8.0.90.0000.00716.85
8.0.80.0090.00616.88
8.0.70.0040.00416.78
8.0.60.0000.00716.96
8.0.50.0000.00716.76
8.0.30.0080.01316.97
8.0.20.0080.01117.40
8.0.10.0000.00717.01
8.0.00.0130.00516.73
7.4.330.0000.00515.55
7.4.320.0030.00316.50
7.4.300.0000.00616.50
7.4.290.0000.00716.40
7.4.280.0070.00016.64
7.4.270.0070.00016.56
7.4.260.0020.00516.58
7.4.250.0000.00716.61
7.4.240.0040.00416.53
7.4.230.0000.00816.60
7.4.220.0050.00316.63
7.4.210.0070.00716.67
7.4.200.0040.00416.48
7.4.160.0090.00916.52
7.4.150.0120.00617.40
7.4.140.0140.00617.86
7.4.130.0110.00616.46
7.4.120.0080.01016.41
7.4.110.0110.00616.71
7.4.100.0030.01416.35
7.4.90.0130.00616.57
7.4.80.0110.00719.39
7.4.70.0090.01216.66
7.4.60.0080.00816.61
7.4.50.0080.00816.46
7.4.40.0070.01516.59
7.4.00.0080.00914.76
7.3.330.0030.00313.39
7.3.320.0000.00613.18
7.3.310.0050.00416.26
7.3.300.0030.00516.30
7.3.290.0080.00716.35
7.3.280.0070.01116.34
7.3.270.0070.01717.40
7.3.260.0090.01016.48
7.3.250.0120.00816.45
7.3.240.0120.01016.46
7.3.230.0130.00816.54
7.3.210.0130.00716.48
7.3.200.0130.00316.42
7.3.190.0090.00616.56
7.3.180.0120.00916.61
7.3.170.0130.00316.37
7.3.160.0150.00616.42
7.3.120.0130.00314.63
7.3.110.0030.01414.90
7.3.100.0080.00614.61
7.3.90.0040.01114.73
7.3.80.0030.01314.92
7.3.70.0000.01614.84
7.3.60.0040.00714.96
7.3.50.0060.00614.74
7.3.40.0090.00914.79
7.3.30.0040.00714.94
7.3.20.0090.00616.76
7.3.10.0100.00316.63
7.3.00.0070.00716.47
7.2.330.0110.00716.57
7.2.320.0090.01516.51
7.2.310.0100.00716.43
7.2.300.0130.00616.30
7.2.290.0090.00616.43
7.2.250.0160.00314.83
7.2.240.0100.01015.17
7.2.230.0080.00415.19
7.2.220.0060.00914.91
7.2.210.0160.00014.76
7.2.200.0060.00914.93
7.2.190.0060.00615.08
7.2.180.0080.00814.88
7.2.170.0040.01114.84
7.2.60.0100.00616.83
7.2.10.0040.01119.62
7.2.00.0070.00719.80
7.1.330.0040.01115.73
7.1.320.0050.00815.55
7.1.310.0030.01015.73
7.1.300.0040.01115.45
7.1.290.0080.00315.68
7.1.280.0080.01115.79
7.1.270.0030.00915.68
7.1.260.0030.01015.55
7.1.200.0000.00815.73
7.1.130.0090.00618.82
7.1.120.0070.00718.30
7.1.110.0000.01518.17
7.1.100.0030.01018.01
7.1.90.0120.00318.04
7.1.80.0060.00617.82
7.1.70.0080.00417.00
7.1.60.0110.01435.17
7.1.50.0090.01634.95
7.1.40.0160.01034.40
7.1.30.0210.00434.44
7.1.20.0240.00334.50
7.1.10.0030.01016.43
7.1.00.0130.00016.48

preferences:
64.83 ms | 400 KiB | 5 Q