3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public function action() { return 'Hello, World!'; } } $callable1 = [Something::class, 'action']; $callable1 = ['SomethingContainerName', 'action']; $callable2 = 'Something::action'; var_dump(is_callable($callable1)); var_dump(is_callable($callable2)); function test(callable $callable) { return is_callable($callable); } var_dump(test($callable1)); var_dump(test($callable2));

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.0140.00316.63
8.3.50.0070.01321.09
8.3.40.0110.00418.68
8.3.30.0100.01018.77
8.3.20.0070.00020.33
8.3.10.0030.00523.53
8.3.00.0040.00419.69
8.2.180.0100.00716.50
8.2.170.0070.01422.96
8.2.160.0100.01020.48
8.2.150.0040.00424.18
8.2.140.0170.00324.66
8.2.130.0030.00726.16
8.2.120.0090.00017.63
8.2.110.0030.00621.97
8.2.100.0040.00717.63
8.2.90.0000.00819.22
8.2.80.0030.00517.97
8.2.70.0070.00317.50
8.2.60.0050.00317.91
8.2.50.0080.00018.07
8.2.40.0080.00020.97
8.2.30.0040.00419.72
8.2.20.0040.00417.79
8.2.10.0000.00718.00
8.2.00.0040.00418.05
8.1.280.0070.00725.92
8.1.270.0000.00820.23
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0150.00322.27
8.1.230.0110.00417.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0050.00318.58
8.1.160.0040.00421.95
8.1.150.0040.00418.74
8.1.140.0000.00917.32
8.1.130.0000.00717.55
8.1.120.0000.00717.32
8.1.110.0050.00317.25
8.1.100.0040.00417.41
8.1.90.0000.00717.30
8.1.80.0050.00517.40
8.1.70.0040.00417.32
8.1.60.0100.00017.65
8.1.50.0000.01117.50
8.1.40.0000.00817.36
8.1.30.0050.00317.47
8.1.20.0040.00417.54
8.1.10.0000.00817.57
8.1.00.0030.00517.34
8.0.300.0030.00718.77
8.0.290.0040.00416.88
8.0.280.0040.00418.38
8.0.270.0000.00717.18
8.0.260.0040.00417.23
8.0.250.0000.00716.93
8.0.240.0010.00616.94
8.0.230.0000.00717.02
8.0.220.0000.00716.89
8.0.210.0040.00416.75
8.0.200.0000.00616.96
8.0.190.0040.00416.94
8.0.180.0070.00016.90
8.0.170.0000.00816.97
8.0.160.0080.00016.96
8.0.150.0000.00916.84
8.0.140.0040.00416.91
8.0.130.0060.00013.36
8.0.120.0000.00816.82
8.0.110.0070.00016.78
8.0.100.0030.00317.00
8.0.90.0040.00416.75
8.0.80.0060.00916.91
8.0.70.0030.00516.71
8.0.60.0040.00416.73
8.0.50.0040.00416.70
8.0.30.0120.00516.99
8.0.20.0120.00717.44
8.0.10.0000.00817.04
8.0.00.0110.01016.78
7.4.330.0000.00515.13
7.4.320.0070.00016.54
7.4.300.0050.00216.49
7.4.290.0000.00816.57
7.4.280.0060.00316.62
7.4.270.0030.00316.53
7.4.260.0000.00716.50
7.4.250.0000.00716.45
7.4.240.0050.00216.59
7.4.230.0070.00016.41
7.4.220.0060.01216.53
7.4.210.0060.01516.52
7.4.200.0050.00316.34
7.4.160.0130.00316.73
7.4.150.0140.00317.40
7.4.140.0120.00617.86
7.4.130.0120.00716.57
7.4.120.0100.00816.56
7.4.110.0090.00916.44
7.4.100.0070.01316.50
7.4.90.0120.00616.50
7.4.80.0130.00319.39
7.4.70.0000.02416.41
7.4.60.0100.00616.50
7.4.50.0030.00516.38
7.4.40.0150.00916.60
7.4.30.0130.00416.43
7.4.00.0040.01114.82
7.3.330.0060.00013.36
7.3.320.0050.00013.24
7.3.310.0030.00316.20
7.3.300.0060.00016.31
7.3.290.0030.00316.25
7.3.280.0100.00716.30
7.3.270.0100.00717.40
7.3.260.0150.00916.29
7.3.250.0070.01216.37
7.3.240.0040.01316.38
7.3.230.0150.00316.39
7.3.210.0140.00316.25
7.3.200.0100.00716.40
7.3.190.0130.00316.52
7.3.180.0100.01016.32
7.3.170.0130.00416.50
7.3.160.0110.00616.27
7.3.120.0070.01117.15
7.3.110.0060.00317.15
7.3.100.0040.01117.15
7.3.90.0070.00317.15
7.3.80.0070.01017.15
7.3.70.0070.00717.15
7.3.60.0140.00017.15
7.3.50.0110.00317.15
7.3.40.0060.00617.15
7.3.30.0060.00617.15
7.3.20.0120.00017.15
7.3.10.0090.00617.15
7.3.00.0090.00617.15
7.2.330.0130.00316.39
7.2.320.0090.01516.57
7.2.310.0050.01316.47
7.2.300.0110.00416.46
7.2.290.0060.01516.58
7.2.240.0040.00717.15
7.2.230.0100.00017.15
7.2.220.0030.01417.15
7.2.210.0100.00317.15
7.2.200.0120.00317.15
7.2.190.0030.01017.15
7.2.180.0030.01317.15
7.2.170.0060.00617.15
7.2.160.0100.00617.15
7.2.150.0070.00417.15
7.2.140.0130.00317.15
7.2.130.0110.00617.15
7.2.120.0110.00717.15
7.2.110.0090.00917.15
7.2.100.0030.00917.15
7.2.90.0030.01217.15
7.2.80.0080.00417.15
7.2.70.0070.01117.15
7.2.60.0050.00716.92
7.2.50.0040.00817.15
7.2.40.0090.00617.15
7.2.30.0110.00317.15
7.2.20.0040.00817.15
7.2.10.0120.00317.15
7.2.00.0090.00617.15
7.1.330.0000.01317.15
7.1.320.0070.00717.15
7.1.310.0060.00617.15
7.1.300.0070.00717.15
7.1.290.0000.01217.15
7.1.280.0000.01117.15
7.1.270.0000.01517.15
7.1.260.0070.00717.15
7.1.250.0030.01417.15
7.1.200.0000.01115.79
7.1.100.0090.00318.08
7.1.70.0030.00517.16
7.1.60.0130.01020.03
7.1.50.0070.01717.03
7.1.00.0000.08022.42
7.0.200.0000.01016.89
7.0.60.0130.06719.78
7.0.50.0030.04317.85
7.0.40.0100.08320.14
7.0.30.0370.07320.16
7.0.20.0300.07320.10
7.0.10.0130.07720.09
7.0.00.0030.09020.06
5.6.280.0000.07321.04
5.6.210.0170.06720.55
5.6.200.0100.04718.29
5.6.190.0100.07720.42
5.6.180.0130.05020.50
5.6.170.0330.07720.71
5.6.160.0100.03720.62
5.6.150.0030.08718.13
5.6.140.0170.07318.15
5.6.130.0030.07018.27
5.6.120.0170.07321.14
5.6.110.0030.08721.03
5.6.100.0200.07020.99
5.6.90.0130.07321.06
5.6.80.0000.05320.36
5.5.350.4330.03720.44
5.5.340.0070.08017.96
5.5.330.0030.07320.41
5.5.320.0230.04020.30
5.5.310.0270.03320.28
5.5.300.0030.08318.07
5.5.290.0130.04717.98
5.5.280.0100.08320.75
5.5.270.0070.08320.64
5.5.260.0130.04320.80
5.5.250.0030.06020.70
5.5.240.0030.06720.35
5.4.450.0130.05719.35
5.4.440.0300.04319.55
5.4.430.0200.06319.43
5.4.420.0170.07019.34
5.4.410.0170.07719.42
5.4.400.0070.06719.34
5.4.390.0300.06319.25
5.4.380.0430.04719.24
5.4.370.0070.05719.26
5.4.360.0030.06019.28
5.4.350.0400.05319.25
5.4.340.0200.06318.96
5.4.320.0370.05719.19
5.4.310.0100.05319.25
5.4.300.0170.06019.18
5.4.290.0130.05018.84
5.4.280.0330.04019.13
5.4.270.0200.05319.25
5.4.260.0170.07319.13
5.4.250.0730.06319.24
5.4.240.0230.06319.02
5.4.230.0130.05019.14
5.4.220.0370.04719.12
5.4.210.0200.04319.27
5.4.200.0230.05018.80
5.4.190.0600.04018.96
5.4.180.0100.05318.80
5.4.170.0230.04719.13
5.4.160.0530.04719.13
5.4.150.0130.05019.19
5.4.140.0030.05716.48
5.4.130.0430.05016.54
5.4.120.0070.05016.34
5.4.110.0130.04716.55
5.4.100.0170.05716.64
5.4.90.0100.07016.63
5.4.80.0130.07016.56
5.4.70.0200.03716.50
5.4.60.0130.04016.53
5.4.50.0270.05016.19
5.4.40.0330.07016.42
5.4.30.0070.05316.44
5.4.20.0200.06316.35
5.4.10.0330.06316.16

preferences:
55.89 ms | 401 KiB | 5 Q