3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait callback{ public function __invoke($p){} } class foo { use callback; } $inline = new class { use callback; }; var_dump( is_callable($inline, false, $target), $target, is_callable([$inline, '__invoke'], false, $target), $target, is_callable(new foo, false, $target), $target );

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.4.120.0090.01124.21
8.4.110.0130.00724.14
8.4.100.0110.00918.02
8.4.90.0080.01220.57
8.4.80.0040.00418.83
8.4.70.0100.01118.90
8.4.60.0110.00918.59
8.4.50.0140.00618.80
8.4.40.0160.00317.59
8.4.30.0030.00519.69
8.4.20.0060.00317.76
8.4.10.0040.00417.70
8.3.250.0030.00518.71
8.3.240.0140.00516.53
8.3.230.0050.00516.61
8.3.220.0110.00718.96
8.3.210.0030.00518.52
8.3.200.0040.00516.52
8.3.190.0100.00916.98
8.3.180.0120.00717.28
8.3.170.0030.01220.80
8.3.160.0100.00417.36
8.3.150.0110.00720.59
8.3.140.0040.00418.54
8.3.130.0070.00716.49
8.3.120.0060.00320.69
8.3.110.0090.00020.94
8.3.100.0070.00316.37
8.3.90.0160.00318.17
8.3.80.0090.00317.97
8.3.70.0120.00616.75
8.3.60.0040.01116.63
8.3.50.0150.00521.92
8.3.40.0110.00418.59
8.3.30.0040.01118.52
8.3.20.0050.00220.32
8.3.10.0040.00421.89
8.3.00.0030.00519.26
8.2.290.0060.01320.35
8.2.280.0070.00218.46
8.2.270.0060.01218.72
8.2.260.0050.00318.03
8.2.250.0110.00716.75
8.2.240.0000.00818.79
8.2.230.0040.00422.58
8.2.220.0090.00024.06
8.2.210.0110.00426.77
8.2.200.0090.00018.29
8.2.190.0170.00316.73
8.2.180.0070.00718.41
8.2.170.0090.00622.96
8.2.160.0100.00319.45
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00019.76
8.2.110.0030.00720.52
8.2.100.0040.00717.87
8.2.90.0040.00419.10
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0080.00017.93
8.2.50.0000.00818.10
8.2.40.0040.00422.22
8.2.30.0040.00419.25
8.2.20.0030.00518.11
8.2.10.0000.00818.24
8.2.00.0000.00718.29
8.1.330.0050.00422.10
8.1.320.0070.01117.72
8.1.310.0050.00318.58
8.1.300.0080.00015.98
8.1.290.0080.00018.88
8.1.280.0130.00725.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.77
8.1.230.0110.00023.86
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0080.00318.65
8.1.160.0070.00018.80
8.1.150.0000.00720.04
8.1.140.0000.00719.53
8.1.130.0000.00719.09
8.1.120.0000.00717.50
8.1.110.0030.00517.46
8.1.100.0070.00017.47
8.1.90.0000.00717.33
8.1.80.0040.00417.50
8.1.70.0000.00717.34
8.1.60.0040.00417.46
8.1.50.0040.00417.41
8.1.40.0030.00517.41
8.1.30.0040.00417.59
8.1.20.0080.00017.71
8.1.10.0000.00717.59
8.1.00.0000.00717.55
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0070.00018.43
8.0.270.0030.00317.25
8.0.260.0020.00518.91
8.0.250.0030.00316.97
8.0.240.0000.00916.93
8.0.230.0000.00717.01
8.0.220.0030.00516.89
8.0.210.0050.00216.93
8.0.200.0030.00316.86
8.0.190.0000.00716.95
8.0.180.0060.00316.93
8.0.170.0040.00416.90
8.0.160.0000.00716.92
8.0.150.0060.00316.88
8.0.140.0070.00016.88
8.0.130.0050.00013.30
8.0.120.0000.00716.74
8.0.110.0000.00716.75
8.0.100.0040.00416.88
8.0.90.0000.00716.84
8.0.80.0000.01416.95
8.0.70.0040.00416.78
8.0.60.0000.00816.82
8.0.50.0040.00416.77
8.0.30.0090.01017.08
8.0.20.0110.00817.40
8.0.10.0000.00816.82
8.0.00.0110.00616.54
7.4.330.0030.00315.55
7.4.320.0000.00616.42
7.4.300.0080.00016.64
7.4.290.0030.00316.60
7.4.280.0000.00716.59
7.4.270.0000.00716.64
7.4.260.0070.00016.50
7.4.250.0000.00716.55
7.4.240.0070.00016.50
7.4.230.0000.00816.41
7.4.220.0140.01016.56
7.4.210.0090.00916.65
7.4.200.0000.00716.57
7.4.160.0060.01216.48
7.4.150.0100.00717.40
7.4.140.0140.00917.86
7.4.130.0110.01116.38
7.4.120.0150.00716.49
7.4.110.0130.01016.31
7.4.100.0080.00816.47
7.4.90.0100.00716.48
7.4.80.0130.00619.39
7.4.70.0110.00516.47
7.4.60.0060.01116.46
7.4.50.0070.00716.51
7.4.40.0080.00816.48
7.4.30.0080.01116.43
7.4.00.0110.00515.20
7.3.330.0050.00013.13
7.3.320.0060.00013.14
7.3.310.0070.00016.20
7.3.300.0040.00416.24
7.3.290.0030.00316.36
7.3.280.0100.00916.30
7.3.270.0100.00717.40
7.3.260.0140.01116.54
7.3.240.0080.01516.50
7.3.230.0080.00816.38
7.3.210.0070.01516.45
7.3.200.0100.00716.48
7.3.190.0140.00316.64
7.3.180.0000.01616.41
7.3.170.0090.00616.38
7.3.160.0120.00416.26
7.3.120.0080.00814.75
7.3.110.0100.00914.82
7.3.100.0030.01014.55
7.3.90.0000.01214.78
7.3.80.0040.01114.74
7.3.70.0130.00314.67
7.3.60.0080.00814.45
7.3.50.0040.01114.66
7.3.40.0030.01014.66
7.3.30.0040.00414.69
7.3.20.0090.00616.76
7.3.10.0070.00716.56
7.3.00.0000.01316.53
7.2.330.0110.00716.67
7.2.320.0130.00616.42
7.2.310.0080.00816.61
7.2.300.0000.01616.75
7.2.290.0160.00016.57
7.2.250.0130.00715.13
7.2.240.0040.00814.89
7.2.230.0030.00614.76
7.2.220.0000.01615.08
7.2.210.0030.00615.36
7.2.200.0070.01114.87
7.2.190.0100.00714.64
7.2.180.0100.00615.07
7.2.170.0110.00715.14
7.2.60.0080.00816.33
7.2.00.0090.00619.46
7.1.330.0040.01215.94
7.1.320.0060.00615.87
7.1.310.0040.01115.89
7.1.300.0060.01015.90
7.1.290.0000.01615.65
7.1.280.0030.00615.83
7.1.270.0040.01115.78
7.1.260.0040.01115.86
7.1.200.0090.00315.62
7.1.70.0030.01017.12
7.1.60.0030.00717.23
7.1.50.0140.00716.89
7.1.40.0130.01334.22
7.1.30.0170.01034.49
7.1.20.0130.01034.62
7.1.10.0030.01716.51
7.1.00.0000.01316.37
7.0.200.0060.00916.86
7.0.180.0070.00716.14
7.0.170.0030.01316.06
7.0.160.0000.01316.30
7.0.150.0070.01016.11
7.0.140.0000.01316.13
7.0.130.0070.00716.34
7.0.120.0030.01016.43
7.0.110.0000.01316.23
7.0.100.0100.00716.22
7.0.90.0030.01015.98
7.0.80.0070.00716.41
7.0.70.0070.00716.13
7.0.60.0000.01316.06
7.0.50.0030.01316.30
7.0.40.0030.01016.36
7.0.30.0030.01016.34
7.0.20.0000.01316.33
7.0.10.0070.00716.32
7.0.00.0070.00716.33

preferences:
28.47 ms | 403 KiB | 5 Q