3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function callback() {} public function set(callable $callback) {} } $callback = ['Test', 'callback']; var_dump(is_callable($callback)); // return FALSE (new Test())->set($callback); // generate error ?>

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.1.100.0040.00417.27
8.1.90.0030.00317.40
8.1.80.0000.00817.39
8.1.70.0030.00317.40
8.1.60.0040.00417.63
8.1.50.0040.00417.48
8.1.40.0080.00017.50
8.1.30.0000.00717.59
8.1.20.0040.00417.54
8.1.10.0040.00417.53
8.1.00.0080.00017.48
8.0.230.0070.00016.98
8.0.220.0070.00016.84
8.0.210.0030.00316.77
8.0.200.0040.00416.98
8.0.190.0000.00816.82
8.0.180.0040.00416.89
8.0.170.0040.00416.83
8.0.160.0000.00816.77
8.0.150.0080.00016.68
8.0.140.0000.00716.77
8.0.130.0050.00013.40
8.0.120.0070.00016.74
8.0.110.0070.00016.86
8.0.100.0070.00016.88
8.0.90.0000.00716.74
8.0.80.0060.01016.86
8.0.70.0000.00716.83
8.0.60.0000.00816.92
8.0.50.0000.00716.77
8.0.30.0140.00317.27
8.0.20.0150.00717.02
8.0.10.0000.00717.07
8.0.00.0060.01216.97
7.4.300.0000.00616.52
7.4.290.0020.00516.53
7.4.280.0040.00416.50
7.4.270.0060.00016.51
7.4.260.0060.00013.30
7.4.250.0040.00416.53
7.4.240.0040.00316.41
7.4.230.0030.00316.57
7.4.220.0020.00516.33
7.4.210.0050.01216.54
7.4.200.0030.00316.39
7.4.130.0140.00816.51
7.4.120.0230.00916.41
7.4.110.0290.00516.54
7.4.100.0220.00616.39
7.4.90.0230.00816.54
7.4.80.0210.00916.61
7.4.70.0190.01216.64
7.4.60.0150.01516.39
7.4.50.0220.00316.56
7.4.40.0130.00316.33
7.4.30.0120.00916.46
7.4.20.0110.00716.46
7.4.10.0170.00316.38
7.4.00.0110.01016.01
7.3.330.0040.00416.26
7.3.320.0050.00013.30
7.3.310.0000.00716.13
7.3.300.0030.00316.24
7.3.290.0090.00716.27
7.3.260.0150.00316.53
7.3.240.0060.01216.24
7.3.230.0230.00816.15
7.3.220.0250.00616.09
7.3.210.0210.01216.25
7.3.200.0200.01316.14
7.3.190.0220.00716.50
7.3.180.0310.00016.32
7.3.170.0090.01216.20
7.3.160.0100.00716.51
7.3.150.0100.00916.32
7.3.140.0130.01016.51
7.3.130.0170.00616.24
7.3.120.0110.00716.20
7.3.110.0070.01016.10
7.3.100.0060.01116.32
7.3.90.0210.00016.27
7.3.80.0160.00316.09
7.3.70.0180.00016.07
7.3.60.0110.00816.13
7.3.50.0100.01316.04
7.3.40.0140.00516.19
7.3.30.0100.00816.22
7.3.20.0250.00616.16
7.3.10.0120.01616.19
7.3.00.0150.00516.30
7.2.340.0220.00716.26
7.2.330.0200.01016.57
7.2.320.0230.01216.62
7.2.310.0230.00816.62
7.2.300.0160.00416.46
7.2.290.0150.00416.57
7.2.280.0120.00416.27
7.2.270.0140.00616.53
7.2.260.0120.00616.58
7.2.250.0040.01416.58
7.2.240.0130.00416.25
7.2.230.0130.00816.27
7.2.220.0090.01216.54
7.2.210.0100.01016.59
7.2.200.0150.00616.30
7.2.190.0150.01216.40
7.2.180.0140.00616.42
7.2.170.0060.01516.52
7.2.160.0090.01016.48
7.2.150.0200.00816.50
7.2.140.0060.01516.62
7.2.130.0130.00716.41
7.2.120.0090.01316.43
7.2.110.0090.01216.50
7.2.100.0110.00916.35
7.2.90.0100.01216.30
7.2.80.0130.00816.50
7.2.70.0120.01216.39
7.2.60.0100.01016.48
7.2.50.0100.01016.37
7.2.40.0080.01016.49
7.2.30.0120.00616.59
7.2.20.0140.00816.43
7.2.10.0150.00916.29
7.2.00.0090.01516.63

preferences:
47.48 ms | 406 KiB | 5 Q