3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function callback() {} } class Test2 { public function set(callable $callback) {} } $callback = 'Test::callback'; var_dump(is_callable($callback)); $a = new Test2(); $a->set($callback); ?>

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.110.0040.00417.39
8.1.100.0050.00317.45
8.1.90.0040.00417.29
8.1.80.0020.00517.39
8.1.70.0030.00317.25
8.1.60.0000.00817.57
8.1.50.0040.00417.42
8.1.40.0000.00817.39
8.1.30.0040.00417.53
8.1.20.0040.00417.56
8.1.10.0040.00417.46
8.1.00.0000.00717.51
8.0.240.0030.00316.92
8.0.230.0000.00616.86
8.0.220.0040.00316.80
8.0.210.0000.00816.86
8.0.200.0070.00016.83
8.0.190.0070.00016.94
8.0.180.0000.00716.93
8.0.170.0000.00816.79
8.0.160.0040.00416.90
8.0.150.0000.00716.82
8.0.140.0080.00016.82
8.0.130.0000.00613.30
8.0.120.0000.00816.84
8.0.110.0040.00416.88
8.0.100.0000.00716.90
8.0.90.0000.00816.95
8.0.80.0090.01216.90
8.0.70.0040.00416.93
8.0.60.0070.00016.71
8.0.50.0000.00716.90
8.0.30.0090.00917.20
8.0.20.0110.00717.04
8.0.10.0040.00416.82
8.0.00.0150.00316.70
7.4.300.0030.00316.38
7.4.290.0000.00716.45
7.4.280.0000.00716.48
7.4.270.0040.00416.39
7.4.260.0000.00513.19
7.4.250.0090.00016.57
7.4.240.0000.00716.44
7.4.230.0000.00716.68
7.4.220.0030.00416.48
7.4.210.0060.00816.59
7.4.200.0030.00316.61
7.4.130.0080.01316.54
7.4.120.0090.00916.52
7.4.110.0080.00816.36
7.4.100.0070.01016.58
7.4.90.0030.01516.57
7.4.80.0160.00316.27
7.4.70.0160.00816.46
7.4.60.0080.01116.41
7.4.50.0100.01316.49
7.4.40.0120.00916.29
7.4.30.0190.00416.45
7.4.20.0070.01216.39
7.4.10.0060.01716.39
7.4.00.0070.01316.55
7.3.330.0030.00316.27
7.3.320.0000.00613.07
7.3.310.0000.00616.29
7.3.300.0000.00616.24
7.3.290.0070.00916.30
7.3.260.0120.00616.29
7.3.240.0040.01216.50
7.3.230.0110.00616.32
7.3.220.0090.00916.36
7.3.210.0110.00816.37
7.3.200.0070.01016.21
7.3.190.0130.00816.21
7.3.180.0140.00716.16
7.3.170.0030.01316.49
7.3.160.0120.00916.24
7.3.150.0110.00616.23
7.3.140.0110.01116.34
7.3.130.0110.01116.40
7.3.120.0110.00716.37
7.3.110.0100.00716.19
7.3.100.0100.00716.22
7.3.90.0000.01716.37
7.3.80.0110.00716.35
7.3.70.0120.00616.24
7.3.60.0120.00616.26
7.3.50.0140.00816.20
7.3.40.0030.02116.27
7.3.30.0060.01516.26
7.3.20.0170.00816.28
7.3.10.0130.00716.27
7.3.00.0140.00416.37
7.2.340.0170.00316.30
7.2.330.0080.01116.77
7.2.320.0130.01016.14
7.2.310.0060.01216.50
7.2.300.0130.00716.68
7.2.290.0110.01116.07
7.2.280.0120.00916.54
7.2.270.0110.01216.55
7.2.260.0020.02016.30
7.2.250.0070.01016.58
7.2.240.0070.01016.20
7.2.230.0040.01416.32
7.2.220.0130.00916.44
7.2.210.0110.00616.66
7.2.200.0120.00616.48
7.2.190.0000.02016.26
7.2.180.0080.01516.42
7.2.170.0090.01216.49
7.2.160.0110.01516.53
7.2.150.0130.00816.47
7.2.140.0070.01416.43
7.2.130.0090.01216.44
7.2.120.0060.01216.47
7.2.110.0220.00716.55
7.2.100.0140.01216.44
7.2.90.0100.01616.61
7.2.80.0130.00616.76
7.2.70.0160.00416.55
7.2.60.0110.01116.61
7.2.50.0110.00816.62
7.2.40.0080.01216.45
7.2.30.0120.00816.48
7.2.20.0100.01416.50
7.2.10.0040.01416.62
7.2.00.0040.01516.43

preferences:
57.3 ms | 406 KiB | 5 Q