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'))); var_dump(is_callable('Foo::bar')); var_dump(is_callable('Foo::barStatic')); */ var_dump(is_callable('ReflectionMethod::setAccessible')); var_dump(is_callable(array('ReflectionMethod', 'setAccessible')));

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.0000.01418.31
8.3.50.0070.01021.82
8.3.40.0120.00318.40
8.3.30.0120.00418.84
8.3.20.0040.00420.07
8.3.10.0030.00523.61
8.3.00.0000.00818.98
8.2.180.0140.00716.32
8.2.170.0140.00722.96
8.2.160.0070.00720.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.93
8.2.110.0060.00322.25
8.2.100.0070.00417.64
8.2.90.0000.00719.10
8.2.80.0040.00417.97
8.2.70.0030.00717.38
8.2.60.0000.00817.80
8.2.50.0030.00518.07
8.2.40.0000.00819.67
8.2.30.0040.00418.22
8.2.20.0000.00717.48
8.2.10.0000.00718.08
8.2.00.0070.00317.59
8.1.280.0140.00325.92
8.1.270.0000.00823.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00023.79
8.1.230.0070.00419.01
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0060.00317.10
8.1.180.0050.00318.10
8.1.170.0060.00318.59
8.1.160.0040.00421.98
8.1.150.0050.00218.51
8.1.140.0000.00817.36
8.1.130.0070.00017.75
8.1.120.0030.00317.32
8.1.110.0040.00417.21
8.1.100.0000.00817.27
8.1.90.0040.00417.36
8.1.80.0080.00017.30
8.1.70.0070.00017.22
8.1.60.0030.00517.36
8.1.50.0040.00417.30
8.1.40.0000.00817.38
8.1.30.0040.00417.36
8.1.20.0050.00317.61
8.1.10.0000.00817.26
8.1.00.0040.00417.16
8.0.300.0030.00618.77
8.0.290.0070.00016.63
8.0.280.0030.00318.24
8.0.270.0000.00717.11
8.0.260.0000.00717.17
8.0.250.0060.00016.70
8.0.240.0030.00316.69
8.0.230.0080.00016.85
8.0.220.0030.00316.74
8.0.210.0000.00716.77
8.0.200.0030.00716.77
8.0.190.0030.00516.81
8.0.180.0000.00716.64
8.0.170.0000.00716.71
8.0.160.0000.00716.71
8.0.150.0050.00316.71
8.0.140.0050.00316.71
8.0.130.0030.00313.17
8.0.120.0000.00716.67
8.0.110.0050.00216.74
8.0.100.0040.00416.74
8.0.90.0040.00416.82
8.0.80.0070.00716.79
8.0.70.0050.00216.84
8.0.60.0070.00016.72
8.0.50.0050.00316.59
8.0.30.0160.00317.01
8.0.20.0110.00917.40
8.0.10.0040.00416.72
8.0.00.0120.00716.64
7.4.330.0050.00015.00
7.4.320.0000.00616.42
7.4.300.0000.00616.37
7.4.290.0020.00516.31
7.4.280.0040.00416.40
7.4.270.0000.00716.38
7.4.260.0000.00716.48
7.4.250.0040.00416.30
7.4.240.0000.00716.44
7.4.230.0070.00016.55
7.4.220.0140.00316.44
7.4.210.0070.01116.49
7.4.200.0000.00716.28
7.4.190.0000.00716.63
7.4.160.0100.01016.15
7.4.150.0110.00717.40
7.4.140.0120.00917.86
7.4.130.0090.00816.40
7.4.120.0060.01116.42
7.4.110.0110.00616.52
7.4.100.0160.00316.16
7.4.90.0110.00816.42
7.4.80.0120.00919.39
7.4.70.0100.00716.22
7.4.60.0140.00716.34
7.4.50.0040.00416.39
7.4.40.0150.00316.29
7.4.30.0090.00916.42
7.4.00.0060.01214.63
7.3.330.0050.00012.88
7.3.320.0020.00213.06
7.3.310.0030.00315.94
7.3.300.0030.00316.11
7.3.290.0120.00616.08
7.3.280.0080.00916.09
7.3.270.0110.01117.40
7.3.260.0100.00616.38
7.3.250.0090.01116.32
7.3.240.0120.01516.14
7.3.230.0290.01616.39
7.3.210.0070.01016.41
7.3.200.0030.01719.39
7.3.190.0090.01316.40
7.3.180.0100.01016.11
7.3.170.0080.00816.27
7.3.160.0070.01016.12
7.3.120.0030.01014.88
7.3.10.0160.00216.45
7.3.00.0090.00516.53
7.2.330.0030.01316.25
7.2.320.0090.00916.39
7.2.310.0090.00916.42
7.2.300.0160.00616.42
7.2.290.0200.00316.38
7.2.130.0060.00816.65
7.2.120.0110.00816.56
7.2.110.0050.01116.54
7.2.100.0100.00316.70
7.2.90.0060.00716.75
7.2.80.0020.01016.64
7.2.70.0080.00916.56
7.2.60.0070.00716.68
7.2.50.0060.00316.65
7.2.40.0050.00916.57
7.2.30.0050.01216.57
7.2.20.0040.00916.73
7.2.10.0070.00416.51
7.2.00.0090.00516.54
7.1.250.0090.00615.85
7.1.100.0050.00517.73
7.1.70.0000.00817.00
7.1.60.0030.01919.70
7.1.50.0090.01316.46
7.1.00.0070.07322.45
7.0.200.0670.00714.61
7.0.140.0070.07022.09
7.0.60.0130.06319.85
7.0.50.0030.07017.80
7.0.40.0100.06720.24
7.0.30.0200.04320.18
7.0.20.0270.03020.02
7.0.10.0070.09020.00
7.0.00.0070.07320.30
5.6.280.0000.07720.90
5.6.210.0100.07720.46
5.6.200.0070.06718.17
5.6.190.0130.06720.47
5.6.180.0330.07020.35
5.6.170.0300.07720.48
5.6.160.0070.07720.52
5.6.150.0000.04318.22
5.6.140.0070.08318.14
5.6.130.0130.06018.18
5.6.120.0030.08021.07
5.6.110.0030.05721.00
5.6.100.0130.07321.10
5.6.90.0100.06721.00
5.6.80.0070.05720.41
5.5.350.4200.04320.40
5.5.340.0030.04017.90
5.5.330.0030.04020.13
5.5.320.0430.06720.21
5.5.310.0400.06020.20
5.5.300.0130.08017.98
5.5.290.0000.08318.01
5.5.280.0030.07320.62
5.5.270.0100.06320.86
5.5.260.0200.07320.79
5.5.250.0100.08320.55
5.5.240.0000.08020.34
5.4.450.0630.03019.48
5.4.440.0270.04319.41
5.4.430.0470.04719.56
5.4.420.0300.03719.41
5.4.410.0270.05019.29
5.4.400.0130.04019.22
5.4.390.0200.05018.80
5.4.380.0300.06018.63
5.4.370.0330.06318.77
5.4.360.0500.04718.56
5.4.350.0370.04318.64
5.4.340.0300.05718.67
5.4.320.0040.03812.45
5.4.310.0090.04412.45
5.4.300.0060.03712.45
5.4.290.0060.03812.45
5.4.280.0100.03912.34
5.4.270.0110.03212.34
5.4.260.0060.03812.34
5.4.250.0100.03812.35
5.4.240.0060.03812.34
5.4.230.0060.04312.34
5.4.220.0110.05012.34
5.4.210.0070.05512.34
5.4.200.0110.05112.34
5.4.190.0070.04812.33
5.4.180.0050.03912.33
5.4.170.0080.03412.34
5.4.160.0060.03512.34
5.4.150.0070.03812.34
5.4.140.0070.04112.02
5.4.130.0060.04312.01
5.4.120.0050.04311.97
5.4.110.0100.03311.96
5.4.100.0050.04011.96
5.4.90.0090.03711.96
5.4.80.0060.04311.96
5.4.70.0120.03211.96
5.4.60.0050.03611.96
5.4.50.0060.03811.96
5.4.40.0060.03711.95
5.4.30.0090.05011.95
5.4.20.0090.05811.95
5.4.10.0060.05611.95
5.4.00.0050.06111.43
5.3.290.0090.03612.80
5.3.280.0070.04812.71
5.3.270.0100.04512.73
5.3.260.0040.04412.71
5.3.250.0080.04012.72
5.3.240.0060.04712.72
5.3.230.0140.04912.70
5.3.220.0060.05812.68
5.3.210.0080.05712.68
5.3.200.0170.04612.68
5.3.190.0070.05612.68
5.3.180.0090.05512.68
5.3.170.0080.05812.66
5.3.160.0130.05212.68
5.3.150.0090.04112.67
5.3.140.0070.04112.66
5.3.130.0070.03812.65
5.3.120.0060.04112.66
5.3.110.0060.04212.66
5.3.100.0060.04012.12
5.3.90.0070.04712.08
5.3.80.0110.04912.07
5.3.70.0070.03912.07
5.3.60.0070.03712.06
5.3.50.0070.03612.00
5.3.40.0110.03412.00
5.3.30.0090.03311.94
5.3.20.0060.03711.72
5.3.10.0070.03511.69
5.3.00.0050.03811.68
5.2.170.0040.0339.18
5.2.160.0070.0319.18
5.2.150.0030.0339.18
5.2.140.0030.0349.17
5.2.130.0070.0309.14
5.2.120.0060.0299.13
5.2.110.0120.0499.14
5.2.100.0060.0319.14
5.2.90.0050.0329.13
5.2.80.0070.0299.13
5.2.70.0050.0339.13
5.2.60.0050.0299.09
5.2.50.0020.0339.05
5.2.40.0110.0229.03
5.2.30.0010.0339.00
5.2.20.0040.0319.00
5.2.10.0030.0308.92
5.2.00.0050.0288.78
5.1.60.0030.0258.06
5.1.50.0030.0298.05
5.1.40.0030.0258.04
5.1.30.0040.0308.39
5.1.20.0000.0318.40
5.1.10.0040.0268.13
5.1.00.0030.0328.14
5.0.50.0050.0286.61
5.0.40.0050.0206.47
5.0.30.0030.0336.29
5.0.20.0050.0266.25
5.0.10.0030.0236.24
5.0.00.0020.0366.23
4.4.90.0040.0164.78
4.4.80.0010.0184.75
4.4.70.0010.0194.75
4.4.60.0030.0164.76
4.4.50.0020.0174.77
4.4.40.0030.0264.70
4.4.30.0020.0174.75
4.4.20.0060.0134.85
4.4.10.0050.0154.85
4.4.00.0050.0254.76
4.3.110.0040.0164.67
4.3.100.0030.0234.66
4.3.90.0030.0214.63
4.3.80.0020.0264.58
4.3.70.0040.0144.63
4.3.60.0040.0184.63
4.3.50.0050.0194.63
4.3.40.0060.0464.54
4.3.30.0000.0213.27
4.3.20.0030.0163.25
4.3.10.0030.0153.22
4.3.00.0000.02016.97

preferences:
42.51 ms | 401 KiB | 5 Q