3v4l.org

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

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.0120.00616.88
8.3.50.0130.00721.30
8.3.40.0100.01019.02
8.3.30.0120.00318.80
8.3.20.0050.00220.25
8.3.10.0000.00723.52
8.3.00.0050.00319.69
8.2.180.0120.00318.43
8.2.170.0160.00622.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0030.01224.66
8.2.130.0070.00326.16
8.2.120.0030.00517.63
8.2.110.0000.00919.45
8.2.100.0110.00017.66
8.2.90.0050.00317.84
8.2.80.0060.00617.97
8.2.70.0030.00717.75
8.2.60.0040.00417.50
8.2.50.0040.00417.55
8.2.40.0080.00019.37
8.2.30.0040.00419.79
8.2.20.0040.00417.79
8.2.10.0080.00018.11
8.2.00.0040.00418.04
8.1.280.0140.00325.92
8.1.270.0000.00820.20
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0000.00922.14
8.1.230.0120.00020.87
8.1.220.0060.00317.74
8.1.210.0080.00019.02
8.1.200.0050.00317.23
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0040.00421.86
8.1.150.0000.00718.74
8.1.140.0030.00617.39
8.1.130.0070.00017.60
8.1.120.0000.00817.41
8.1.110.0040.00417.27
8.1.100.0040.00417.39
8.1.90.0000.00817.42
8.1.80.0000.00717.26
8.1.70.0000.00717.32
8.1.60.0070.00417.46
8.1.50.0040.00717.41
8.1.40.0030.00617.55
8.1.30.0050.00317.52
8.1.20.0040.00417.52
8.1.10.0050.00217.62
8.1.00.0050.00317.55
8.0.300.0040.00419.88
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0000.00717.21
8.0.260.0040.00417.19
8.0.250.0070.00016.91
8.0.240.0040.00417.00
8.0.230.0040.00416.99
8.0.220.0000.00716.89
8.0.210.0000.00716.87
8.0.200.0030.00316.97
8.0.190.0040.00416.80
8.0.180.0040.00416.99
8.0.170.0000.00816.90
8.0.160.0000.00716.90
8.0.150.0040.00416.90
8.0.140.0080.00316.75
8.0.130.0030.00313.40
8.0.120.0040.00416.85
8.0.110.0000.00716.81
8.0.100.0000.00716.74
8.0.90.0030.00516.94
8.0.80.0000.01516.95
8.0.70.0050.00316.99
8.0.60.0040.00416.72
8.0.50.0000.00816.91
8.0.30.0060.01317.23
8.0.20.0090.01117.40
8.0.10.0050.00216.95
8.0.00.0110.00616.85
7.4.330.0050.00015.08
7.4.320.0000.00716.54
7.4.300.0030.00316.60
7.4.290.0040.00416.62
7.4.280.0000.00716.64
7.4.270.0030.00416.50
7.4.260.0000.00716.58
7.4.250.0040.00416.54
7.4.240.0030.00416.61
7.4.230.0000.00616.41
7.4.220.0040.01316.50
7.4.210.0060.00916.59
7.4.200.0040.00416.70
7.4.160.0150.00816.48
7.4.150.0130.01017.40
7.4.140.0100.00917.86
7.4.130.0130.00916.50
7.4.120.0060.01316.53
7.4.110.0090.00916.48
7.4.100.0140.00716.47
7.4.90.0140.00316.45
7.4.80.0110.00519.39
7.4.70.0140.00716.30
7.4.60.0070.01016.59
7.4.50.0020.00216.43
7.4.40.0090.00916.60
7.4.30.0150.00616.69
7.4.10.0070.01014.93
7.4.00.0090.00515.07
7.3.330.0030.00413.27
7.3.320.0030.00313.19
7.3.310.0040.00416.17
7.3.300.0030.00316.28
7.3.290.0000.00716.27
7.3.280.0070.01016.34
7.3.270.0080.00817.40
7.3.260.0100.01416.31
7.3.250.0100.00916.46
7.3.240.0150.00516.30
7.3.230.0110.00616.59
7.3.210.0060.01016.49
7.3.200.0100.00516.52
7.3.190.0070.01016.27
7.3.180.0130.00416.44
7.3.170.0130.00616.69
7.3.160.0070.01016.48
7.3.130.0100.00814.83
7.3.120.0070.00714.66
7.3.110.0050.01214.76
7.3.100.0040.01214.71
7.3.90.0090.00514.70
7.3.80.0040.00514.76
7.3.70.0120.00314.84
7.3.60.0040.01314.82
7.3.50.0000.01314.73
7.3.40.0070.00414.83
7.3.30.0070.00714.69
7.3.20.0070.00816.71
7.3.10.0040.00916.70
7.3.00.0080.00716.52
7.2.330.0070.02116.55
7.2.320.0180.00616.55
7.2.310.0100.00616.36
7.2.300.0060.01116.20
7.2.290.0130.00316.58
7.2.260.0050.01115.06
7.2.250.0090.01114.80
7.2.240.0060.00614.96
7.2.230.0030.01214.91
7.2.220.0050.00815.03
7.2.210.0030.00914.88
7.2.200.0060.00914.90
7.2.190.0060.00514.94
7.2.180.0080.00715.03
7.2.170.0020.01314.94
7.2.160.0080.00314.97
7.2.150.0020.01216.75
7.2.140.0050.01016.67
7.2.130.0080.00816.79
7.2.120.0060.00816.71
7.2.110.0080.00716.67
7.2.100.0100.00316.67
7.2.90.0060.00916.73
7.2.80.0010.01216.89
7.2.70.0050.00716.64
7.2.60.0050.01016.80
7.2.50.0020.01116.76
7.2.40.0100.00516.78
7.2.30.0050.00716.85
7.2.20.0030.00916.63
7.2.10.0090.00516.82
7.2.00.0090.00617.47
7.1.330.0060.00815.68
7.1.320.0070.00615.64
7.1.310.0060.00815.81
7.1.300.0030.01015.40
7.1.290.0030.01015.76
7.1.280.0030.01015.55
7.1.270.0030.01015.55
7.1.260.0040.00615.57
7.1.250.0040.00515.69
7.1.240.0050.00715.74
7.1.230.0060.00515.77
7.1.220.0030.01015.73
7.1.210.0070.00715.64
7.1.200.0050.00715.72
7.1.190.0070.00615.52
7.1.180.0100.00615.84
7.1.170.0110.00215.66
7.1.160.0050.00715.69
7.1.150.0030.01215.70
7.1.140.0000.01015.65
7.1.130.0080.00515.78
7.1.120.0030.00915.64
7.1.110.0020.00915.75
7.1.100.0070.00516.32
7.1.90.0050.00815.82
7.1.80.0030.00915.76
7.1.70.0060.00716.14
7.1.60.0030.01217.15
7.1.50.0040.01216.12
7.1.40.0050.01015.67
7.1.30.0090.00615.74
7.1.20.0060.01015.76
7.1.10.0070.00815.79
7.1.00.0040.03117.95
7.0.330.0080.00515.29
7.0.320.0050.00515.21
7.0.310.0060.00815.36
7.0.300.0030.01215.38
7.0.290.0020.00915.30
7.0.280.0040.00715.35
7.0.270.0030.00815.29
7.0.260.0050.00715.35
7.0.250.0060.00515.26
7.0.240.0050.01015.47
7.0.230.0050.00715.40
7.0.220.0090.00315.35
7.0.210.0020.01115.30
7.0.200.0030.00815.84
7.0.190.0030.00715.49
7.0.180.0050.00615.46
7.0.170.0060.00715.22
7.0.160.0080.00815.42
7.0.150.0060.00815.43
7.0.140.0020.01315.26
7.0.130.0030.00815.53
7.0.120.0030.00915.39
7.0.110.0070.00615.29
7.0.100.0030.01015.30
7.0.90.0050.00915.32
7.0.80.0020.00915.26
7.0.70.0060.00515.29
7.0.60.0070.01616.97
7.0.50.0070.03116.24
7.0.40.0060.03615.66
7.0.30.0190.03215.57
7.0.20.0050.02115.68
7.0.10.0080.02715.68
7.0.00.0030.03715.71
5.6.400.0010.00914.22
5.6.390.0080.00814.38
5.6.380.0090.00514.27
5.6.370.0060.00614.09
5.6.360.0090.00314.25
5.6.350.0010.01214.17
5.6.340.0070.00514.24
5.6.330.0030.01114.09
5.6.320.0050.00413.99
5.6.310.0060.00614.18
5.6.300.0040.01114.29
5.6.290.0050.00814.11
5.6.280.0070.02416.41
5.6.270.0030.01314.21
5.6.260.0070.00614.27
5.6.250.0050.01014.09
5.6.240.0050.00714.08
5.6.230.0100.00314.21
5.6.220.0070.00914.40
5.6.210.0060.03116.37
5.6.200.0100.02715.49
5.6.190.0120.03016.46
5.6.180.1170.02016.26
5.6.170.0120.01916.28
5.6.160.0070.02216.22
5.6.150.0080.02515.54
5.6.140.0040.01915.57
5.6.130.0030.01815.58
5.6.120.0070.02616.53
5.6.110.0110.02016.47
5.6.100.0060.03116.33
5.6.90.0020.03616.43
5.6.80.0080.02816.26
5.6.70.0130.01916.21
5.6.60.0080.00614.23
5.6.50.0030.01014.22
5.6.40.0080.00414.19
5.6.30.0110.00214.05
5.6.20.0030.00714.05
5.6.10.0060.00914.07
5.6.00.0080.00714.21
5.5.380.0060.00714.08
5.5.370.0070.00814.13
5.5.360.0080.00414.20
5.5.350.0150.02616.10
5.5.340.0010.02115.48
5.5.330.0090.03116.30
5.5.320.0110.03116.37
5.5.310.0120.02716.18
5.5.300.0030.03315.35
5.5.290.0060.01615.45
5.5.280.0060.03416.43
5.5.270.0080.01516.36
5.5.260.0060.02516.43
5.5.250.0050.01916.33
5.5.240.0110.02816.14
5.5.230.0020.01214.16
5.5.220.0040.01114.14
5.5.210.0060.00714.15
5.5.200.0050.01114.33
5.5.190.0070.01014.06
5.5.180.0090.00414.25
5.5.170.0050.00914.04
5.5.160.0050.01014.16
5.5.150.0130.00314.10
5.5.140.0050.01214.01
5.5.130.0080.00714.28
5.5.120.0070.00814.14
5.5.110.0080.00814.16
5.5.100.0070.00714.09
5.5.90.0100.00513.88
5.5.80.0070.00714.17
5.5.70.0120.00514.01
5.5.60.0030.01013.79
5.5.50.0080.00814.06
5.5.40.0030.01214.17
5.5.30.0070.00714.31
5.5.20.0070.00414.10
5.5.10.0100.00314.19
5.5.00.0060.00613.99
5.4.450.0070.02913.95
5.4.440.0070.02913.93
5.4.430.0060.02313.98
5.4.420.0120.02314.06
5.4.410.0130.01814.06
5.4.400.0080.02113.82
5.4.390.0170.02413.65
5.4.380.0280.02113.90
5.4.370.0210.02413.83
5.4.360.0220.02913.81
5.4.350.0070.02113.83
5.4.340.0090.01913.78
5.4.330.0060.00311.05
5.4.320.0110.02213.90
5.4.310.0100.02013.84
5.4.300.0100.01913.94
5.4.290.0080.02213.96
5.4.280.0070.02513.79
5.4.270.0090.02113.92
5.4.260.0080.02313.84
5.4.250.0110.02013.79
5.4.240.0120.02113.91
5.4.230.0080.02413.77
5.4.220.0060.02613.77
5.4.210.0090.02113.88
5.4.200.0070.02113.81
5.4.190.0090.02613.88
5.4.180.0050.02113.82
5.4.170.0100.03013.84
5.4.160.0070.02013.90
5.4.150.0080.02113.89
5.4.140.0080.02113.03
5.4.130.0070.02012.88
5.4.120.0090.02012.97
5.4.110.0050.02212.92
5.4.100.0130.02113.02
5.4.90.0200.02112.89
5.4.80.0210.02012.93
5.4.70.0090.01513.00
5.4.60.0120.01512.97
5.4.50.0030.02612.80
5.4.40.0050.01813.01
5.4.30.0050.02112.93
5.4.20.0130.02212.90
5.4.10.0010.00911.11
5.4.00.0020.00911.22

preferences:
60.45 ms | 401 KiB | 5 Q