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']; 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.0070.00718.64
8.3.50.0150.00016.36
8.3.40.0120.00318.89
8.3.30.0110.00418.79
8.3.20.0060.00320.26
8.3.10.0030.00621.73
8.3.00.0030.00519.38
8.2.180.0090.01216.63
8.2.170.0110.00422.96
8.2.160.0070.00720.53
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0090.00022.30
8.2.120.0080.00026.35
8.2.110.0030.00720.80
8.2.100.0120.00017.91
8.2.90.0040.00420.61
8.2.80.0000.00820.48
8.2.70.0090.00017.80
8.2.60.0030.00617.80
8.2.50.0040.00418.10
8.2.40.0000.00720.47
8.2.30.0000.00719.18
8.2.20.0030.00517.92
8.2.10.0040.00418.11
8.2.00.0000.00718.16
8.1.280.0070.00725.92
8.1.270.0080.00021.69
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0040.00720.97
8.1.220.0030.00617.79
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0000.00818.72
8.1.160.0040.00418.81
8.1.150.0040.00418.81
8.1.140.0040.00417.52
8.1.130.0000.00818.80
8.1.120.0040.00417.43
8.1.110.0040.00417.38
8.1.100.0040.00417.42
8.1.90.0040.00417.36
8.1.80.0040.00417.41
8.1.70.0000.00717.39
8.1.60.0030.00517.52
8.1.50.0080.00417.50
8.1.40.0040.00417.48
8.1.30.0040.00417.66
8.1.20.0070.00017.65
8.1.10.0080.00017.59
8.1.00.0040.00417.57
8.0.300.0000.00720.16
8.0.290.0000.00816.75
8.0.280.0050.00218.37
8.0.270.0030.00316.81
8.0.260.0030.00319.01
8.0.250.0000.00716.86
8.0.240.0040.00416.85
8.0.230.0000.00716.93
8.0.220.0000.00716.89
8.0.210.0050.00316.89
8.0.200.0030.00316.93
8.0.190.0080.00016.98
8.0.180.0030.00316.91
8.0.170.0060.00316.81
8.0.160.0030.00616.77
8.0.150.0080.00016.90
8.0.140.0050.00316.72
8.0.130.0030.00313.35
8.0.120.0040.00416.86
8.0.110.0070.00016.90
8.0.100.0000.00716.82
8.0.90.0000.00816.82
8.0.80.0060.00916.88
8.0.70.0000.00716.71
8.0.60.0040.00416.75
8.0.50.0000.00816.78
8.0.30.0100.01017.31
8.0.20.0070.01417.40
8.0.10.0040.00416.88
8.0.00.0160.00316.83
7.4.330.0000.00415.55
7.4.320.0030.00316.60
7.4.300.0030.00316.50
7.4.290.0060.00016.40
7.4.280.0000.00716.41
7.4.270.0070.00016.51
7.4.260.0030.00316.46
7.4.250.0000.00716.49
7.4.240.0030.00516.64
7.4.230.0020.00516.49
7.4.220.0000.00716.34
7.4.210.0140.00016.68
7.4.200.0040.00416.34
7.4.160.0040.01216.58
7.4.150.0110.00717.40
7.4.140.0130.00917.86
7.4.130.0130.00516.63
7.4.120.0100.00916.49
7.4.110.0120.00616.41
7.4.100.0070.01716.56
7.4.90.0060.01116.64
7.4.80.0060.01219.39
7.4.70.0090.01316.53
7.4.60.0040.01116.57
7.4.50.0060.00616.43
7.4.40.0120.00316.61
7.4.00.0030.01314.92
7.3.330.0050.00013.21
7.3.320.0000.00613.23
7.3.310.0070.00016.35
7.3.300.0070.00016.37
7.3.290.0030.00416.25
7.3.280.0060.00916.41
7.3.270.0030.01417.40
7.3.260.0070.01216.42
7.3.250.0080.00916.40
7.3.240.0120.00716.46
7.3.230.0090.00916.34
7.3.210.0070.01016.23
7.3.200.0030.01316.45
7.3.190.0070.01016.38
7.3.180.0060.00916.24
7.3.170.0030.01316.42
7.3.160.0120.00316.61
7.2.330.0080.00816.36
7.2.320.0100.00716.35
7.2.310.0100.00716.43
7.2.300.0100.00716.65
7.2.290.0070.01016.60
7.2.60.0070.00416.82
7.2.10.0290.01018.14
7.2.00.0270.00817.89
7.1.200.0110.00415.46
7.1.130.0150.01216.79
7.1.120.0190.01317.05
7.1.110.0150.01216.07
7.1.100.0200.00615.90
7.1.90.0180.00816.37
7.1.80.0170.01016.08
7.1.70.0250.00915.21
7.1.60.0330.01332.92
7.1.50.0350.01232.88
7.1.40.0390.01332.52
7.1.30.0350.01532.56
7.1.20.0490.00632.66
7.1.10.0110.01714.57
7.1.00.0180.00714.79

preferences:
53.19 ms | 400 KiB | 5 Q