3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function barStatic() { } public function bar() { } } $foo = new Foo(); var_dump(is_callable(array($foo, 'bar'))); var_dump(is_callable(array($foo, 'barStatic'))); var_dump(is_callable(array('Foo', 'bar'))); var_dump(is_callable(array('Foo', 'barStatic')));

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.0040.01118.06
8.3.50.0100.00821.88
8.3.40.0120.00618.75
8.3.30.0120.00619.14
8.3.20.0000.00820.18
8.3.10.0040.00423.52
8.3.00.0060.00320.94
8.2.180.0100.01316.63
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.86
8.2.110.0040.00421.12
8.2.100.0080.00417.72
8.2.90.0040.00417.84
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0000.00819.86
8.2.30.0080.00018.33
8.2.20.0040.00417.56
8.2.10.0050.00218.17
8.2.00.0040.00417.73
8.1.280.0100.00325.92
8.1.270.0080.00023.71
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.55
8.1.230.0050.00520.91
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0080.00018.10
8.1.170.0000.00818.47
8.1.160.0000.00721.97
8.1.150.0040.00418.62
8.1.140.0070.00017.50
8.1.130.0070.00017.89
8.1.120.0030.00317.38
8.1.110.0000.00717.48
8.1.100.0040.00417.47
8.1.90.0090.00017.49
8.1.80.0000.00817.33
8.1.70.0000.00717.43
8.1.60.0060.00317.46
8.1.50.0040.00417.49
8.1.40.0000.00717.51
8.1.30.0040.00417.59
8.1.20.0000.00817.50
8.1.10.0040.00417.59
8.1.00.0000.00717.44
8.0.300.0050.00319.73
8.0.290.0080.00016.75
8.0.280.0000.00718.36
8.0.270.0030.00317.16
8.0.260.0030.00317.21
8.0.250.0000.00717.02
8.0.240.0040.00416.93
8.0.230.0020.00516.81
8.0.220.0030.00316.89
8.0.210.0070.00016.79
8.0.200.0000.00716.94
8.0.190.0000.00716.99
8.0.180.0070.00016.91
8.0.170.0070.00016.82
8.0.160.0030.00316.88
8.0.150.0030.00316.79
8.0.140.0020.00516.91
8.0.130.0060.00013.34
8.0.120.0080.00016.90
8.0.110.0000.00816.77
8.0.100.0040.00416.79
8.0.90.0040.00416.91
8.0.80.0080.00816.80
8.0.70.0040.00416.74
8.0.60.0030.00316.74
8.0.50.0020.00516.95
8.0.30.0110.01117.16
8.0.20.0190.00517.40
8.0.10.0040.00416.90
8.0.00.0090.01116.76
7.4.330.0020.00215.14
7.4.320.0030.00316.52
7.4.300.0000.00616.51
7.4.290.0030.00316.63
7.4.280.0070.00416.44
7.4.270.0070.00016.48
7.4.260.0030.00316.58
7.4.250.0040.00416.45
7.4.240.0060.00216.51
7.4.230.0070.00016.49
7.4.220.0030.01316.46
7.4.210.0040.01116.54
7.4.200.0070.00016.70
7.4.190.0040.00416.73
7.4.160.0000.01616.38
7.4.150.0170.00017.40
7.4.140.0110.01217.86
7.4.130.0090.00916.56
7.4.120.0050.01216.57
7.4.110.0150.00416.38
7.4.100.0160.00416.27
7.4.90.0110.00616.44
7.4.80.0100.00719.39
7.4.70.0100.00616.36
7.4.60.0080.00816.48
7.4.50.0040.00416.50
7.4.40.0100.00616.38
7.4.30.0110.00616.39
7.4.10.0050.01115.66
7.4.00.0060.00915.55
7.3.330.0030.00313.13
7.3.320.0000.00713.37
7.3.310.0070.00016.20
7.3.300.0030.00316.30
7.3.290.0000.01516.35
7.3.280.0100.00816.28
7.3.270.0040.01417.40
7.3.260.0040.01516.35
7.3.250.0140.00316.45
7.3.240.0090.01216.34
7.3.230.0070.01416.39
7.3.210.0120.00416.44
7.3.200.0180.00319.39
7.3.190.0130.00416.43
7.3.180.0090.00616.34
7.3.170.0100.01316.48
7.3.160.0100.00716.36
7.3.130.0020.01615.81
7.3.120.0110.00715.32
7.3.110.0040.01615.37
7.3.100.0120.00515.44
7.3.90.0110.00515.52
7.3.80.0060.00515.60
7.3.70.0090.00415.39
7.3.60.0080.00615.47
7.3.50.0080.00715.49
7.3.40.0070.01015.55
7.3.30.0050.01015.58
7.3.20.0060.00817.40
7.3.10.0090.00417.33
7.3.00.0020.01517.34
7.2.330.0060.01216.30
7.2.320.0180.00616.78
7.2.310.0080.00816.20
7.2.300.0080.00816.40
7.2.290.0090.01216.31
7.2.260.0100.00815.90
7.2.250.0110.00515.80
7.2.240.0070.00815.87
7.2.230.0100.00715.78
7.2.220.0090.01015.70
7.2.210.0030.01115.73
7.2.200.0080.00515.78
7.2.190.0050.01015.72
7.2.180.0060.00715.82
7.2.170.0080.00915.63
7.2.160.0070.00515.67
7.2.150.0070.00917.53
7.2.140.0050.01217.69
7.2.130.0050.01217.42
7.2.120.0070.00917.51
7.2.110.0080.00917.56
7.2.100.0060.00917.75
7.2.90.0070.01117.44
7.2.80.0030.01017.51
7.2.70.0070.00917.57
7.2.60.0080.00517.48
7.2.50.0030.00817.65
7.2.40.0050.00617.41
7.2.30.0080.00617.58
7.2.20.0090.00317.50
7.2.10.0050.01217.63
7.2.00.0070.00717.97
7.1.330.0020.01216.65
7.1.320.0080.00816.49
7.1.310.0090.00516.34
7.1.300.0070.00716.47
7.1.290.0080.00516.44
7.1.280.0050.00816.56
7.1.270.0080.00816.46
7.1.260.0060.01016.54
7.1.250.0070.00816.54
7.1.240.0070.00916.49
7.1.230.0060.00916.47
7.1.220.0070.00716.50
7.1.210.0040.00916.50
7.1.200.0080.00516.47
7.1.190.0060.00816.42
7.1.180.0090.00816.55
7.1.170.0060.00516.48
7.1.160.0020.00916.48
7.1.150.0080.00816.47
7.1.140.0050.00816.57
7.1.130.0030.01316.47
7.1.120.0110.00416.35
7.1.110.0060.00916.53
7.1.100.0070.01016.98
7.1.90.0000.01116.55
7.1.80.0020.01416.36
7.1.70.0040.00916.73
7.1.60.0080.01017.43
7.1.50.0100.00916.55
7.1.40.0070.00716.53
7.1.30.0100.00516.45
7.1.20.0040.00716.62
7.1.10.0070.01116.62
7.1.00.0040.03218.45
7.0.330.0050.00816.04
7.0.320.0050.01116.10
7.0.310.0080.00516.00
7.0.300.0020.01015.88
7.0.290.0040.01016.06
7.0.280.0050.00816.19
7.0.270.0040.00716.11
7.0.260.0050.01016.10
7.0.250.0040.01116.07
7.0.240.0030.01016.21
7.0.230.0020.01016.15
7.0.220.0080.00616.18
7.0.210.0040.00816.11
7.0.200.0100.00916.19
7.0.190.0070.00816.01
7.0.180.0080.00716.17
7.0.170.0080.00516.24
7.0.160.0010.01216.16
7.0.150.0090.00716.19
7.0.140.0030.03118.08
7.0.130.0030.00716.08
7.0.120.0050.00916.12
7.0.110.0080.02917.30
7.0.100.0070.02917.40
7.0.90.0070.02817.39
7.0.80.0060.03517.37
7.0.70.0080.02617.36
7.0.60.0060.03017.42
7.0.50.0090.02817.58
7.0.40.0120.02816.26
7.0.30.0050.03516.18
7.0.20.0110.02416.11
7.0.10.0080.03016.22
7.0.00.0120.02716.20
5.6.400.0050.01315.24
5.6.390.0090.00515.05
5.6.380.0080.00815.11
5.6.370.0090.00115.32
5.6.360.0070.00615.13
5.6.350.0050.01015.30
5.6.340.0050.00715.05
5.6.330.0030.01015.13
5.6.320.0050.00915.25
5.6.310.0080.00814.98
5.6.300.0050.01115.12
5.6.290.0060.00815.21
5.6.280.0080.02817.04
5.6.270.0060.00614.96
5.6.260.0090.02116.85
5.6.250.0050.02016.94
5.6.240.0060.03216.97
5.6.230.0080.03316.93
5.6.220.0050.03116.88
5.6.210.0090.02916.95
5.6.200.0060.03517.12
5.6.190.0110.02717.13
5.6.180.0030.03117.14
5.6.170.0090.02717.13
5.6.160.0080.03017.08
5.6.150.0080.03217.18
5.6.140.0110.03217.06
5.6.130.0020.03316.96
5.6.120.0080.02917.06
5.6.110.0080.02717.07
5.6.100.0030.02017.19
5.6.90.0060.01817.06
5.6.80.0060.01816.75
5.6.70.0050.02016.97
5.6.60.0060.01716.96
5.6.50.0070.01616.79
5.6.40.0020.03716.76
5.6.30.0080.01716.80
5.6.20.0070.01716.73
5.6.10.0030.02916.74
5.6.00.0090.02616.67
5.5.380.0070.03016.94
5.5.370.0100.02916.83
5.5.360.0060.03116.80
5.5.350.0070.03616.80
5.5.340.0050.03616.94
5.5.330.0110.03116.96
5.5.320.0100.03216.86
5.5.310.0090.02116.86
5.5.300.0040.03417.05
5.5.290.0100.03117.01
5.5.280.0090.02516.91
5.5.270.0070.02817.03
5.5.260.0040.02816.99
5.5.250.0050.02016.89
5.5.240.0010.02416.68
5.5.230.0040.02016.69
5.5.220.0030.01916.67
5.5.210.0040.01916.65
5.5.200.0070.01716.77
5.5.190.0070.03016.69
5.5.180.0080.02616.70
5.5.170.0070.00714.87
5.5.160.0060.01716.59
5.5.150.0060.01816.75
5.5.140.0080.01916.72
5.5.130.0040.02416.61
5.5.120.0110.01216.74
5.5.110.0070.01716.72
5.5.100.0080.01516.76
5.5.90.0070.01416.62
5.5.80.0020.02616.71
5.5.70.0050.01816.62
5.5.60.0040.01816.68
5.5.50.0050.01716.61
5.5.40.0040.01916.57
5.5.30.0090.01716.71
5.5.20.0050.01916.59
5.5.10.0050.01716.71
5.5.00.0060.01616.70
5.4.450.0070.02714.33
5.4.440.0040.03014.39
5.4.430.0060.02114.34
5.4.420.0010.01914.48
5.4.410.0020.01914.37
5.4.400.0090.01514.29
5.4.390.0070.01414.19
5.4.380.0050.01814.19
5.4.370.0040.01714.30
5.4.360.0030.01814.39
5.4.350.0040.02514.31
5.4.340.0050.02814.21
5.4.330.0020.01011.82
5.4.320.0020.02014.19
5.4.310.0050.02514.23
5.4.300.0060.02114.27
5.4.290.0020.01914.23
5.4.280.0060.02014.18
5.4.270.0030.02714.34
5.4.260.0030.02114.29
5.4.250.0030.01914.24
5.4.240.0060.01314.18
5.4.230.0060.01614.19
5.4.220.0070.02014.33
5.4.210.0050.01414.41
5.4.200.0070.01314.30
5.4.190.0010.01914.19
5.4.180.0050.01514.28
5.4.170.0030.02614.23
5.4.160.0020.02014.41
5.4.150.0050.01814.25
5.4.140.0020.02013.40
5.4.130.0070.01413.27
5.4.120.0020.01813.40
5.4.110.0030.01613.34
5.4.100.0030.01913.37
5.4.90.0060.01913.34
5.4.80.0010.01713.40
5.4.70.0020.01913.32
5.4.60.0040.01813.35
5.4.50.0050.01613.46
5.4.40.0050.01813.39
5.4.30.0070.01413.38
5.4.20.0050.01813.32
5.4.10.0050.02213.30
5.4.00.0060.02813.21
5.3.290.0070.01813.01
5.3.280.0050.01612.91
5.3.270.0040.01812.92
5.3.260.0060.01612.89
5.3.250.0050.01612.99
5.3.240.0040.01812.89
5.3.230.0030.01812.83
5.3.220.0070.01612.80
5.3.210.0070.01812.83
5.3.200.0040.02012.92
5.3.190.0050.01712.88
5.3.180.0060.01712.90
5.3.170.0040.01912.94
5.3.160.0060.01712.94
5.3.150.0050.02712.86
5.3.140.0070.01612.88
5.3.130.0060.01812.94
5.3.120.0100.02612.85
5.3.110.0100.02712.86
5.3.100.0040.02312.72
5.3.90.0090.02812.67
5.3.80.0060.03112.66
5.3.70.0040.02012.70
5.3.60.0090.02512.75
5.3.50.0020.03112.64
5.3.40.0070.01912.71
5.3.30.0080.02612.66
5.3.20.0070.02712.59
5.3.10.0080.02512.46
5.3.00.0070.02212.48

preferences:
40.33 ms | 401 KiB | 5 Q