3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { } } function test (callable $arg) { } $foo = new Foo(); var_dump(is_callable(array($foo, 'bar'))); var_dump(is_callable(array(0 => $foo, 1 => 'bar'))); test(array($foo, 'bar')); test(array(0 => $foo, 1 => 'bar'));

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.0080.00816.63
8.3.50.0140.00322.10
8.3.40.0080.01218.85
8.3.30.0030.01419.04
8.3.20.0070.00020.16
8.3.10.0050.00520.16
8.3.00.0040.00419.25
8.2.180.0150.00016.63
8.2.170.0040.01122.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.16
8.2.110.0040.00422.17
8.2.100.0040.00717.91
8.2.90.0070.00019.08
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0000.00818.34
8.2.30.0040.00419.49
8.2.20.0080.00017.61
8.2.10.0000.00818.04
8.2.00.0040.00417.84
8.1.280.0100.01025.92
8.1.270.0070.00323.81
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00023.92
8.1.230.0080.00318.79
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0100.00017.22
8.1.190.0060.00317.35
8.1.180.0000.00718.10
8.1.170.0000.00718.58
8.1.160.0030.00522.01
8.1.150.0070.00018.80
8.1.140.0040.00417.47
8.1.130.0040.00417.78
8.1.120.0070.00017.37
8.1.110.0000.00817.44
8.1.100.0000.00817.41
8.1.90.0040.00417.37
8.1.80.0000.00717.51
8.1.70.0030.00317.43
8.1.60.0000.00817.50
8.1.50.0000.00817.53
8.1.40.0050.00317.55
8.1.30.0000.00817.64
8.1.20.0080.00017.51
8.1.10.0040.00417.53
8.1.00.0080.00017.52
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0000.00818.31
8.0.270.0000.00716.80
8.0.260.0000.00617.27
8.0.250.0040.00416.88
8.0.240.0030.00317.09
8.0.230.0040.00316.97
8.0.220.0040.00416.84
8.0.210.0000.00716.84
8.0.200.0000.00716.95
8.0.190.0000.00716.93
8.0.180.0000.00817.01
8.0.170.0000.00916.86
8.0.160.0000.00716.84
8.0.150.0030.00316.86
8.0.140.0040.00416.92
8.0.130.0000.00613.46
8.0.120.0040.00416.80
8.0.110.0040.00416.85
8.0.100.0050.00216.96
8.0.90.0040.00416.93
8.0.80.0040.01116.96
8.0.70.0040.00416.75
8.0.60.0040.00417.01
8.0.50.0000.00717.01
8.0.30.0140.01117.26
8.0.20.0120.00817.40
8.0.10.0030.00617.10
8.0.00.0120.00916.87
7.4.330.0050.00015.15
7.4.320.0000.00716.49
7.4.300.0040.00416.60
7.4.290.0030.00316.59
7.4.280.0030.00616.50
7.4.270.0080.00016.50
7.4.260.0070.00016.59
7.4.250.0080.00016.55
7.4.240.0020.00516.42
7.4.230.0040.00416.39
7.4.220.0080.00816.55
7.4.210.0060.01316.58
7.4.200.0030.00316.34
7.4.160.0000.02016.57
7.4.150.0170.00717.40
7.4.140.0090.00917.86
7.4.130.0080.00916.44
7.4.120.0080.00916.51
7.4.110.0130.00316.31
7.4.100.0160.00616.33
7.4.90.0100.00716.68
7.4.80.0210.00419.39
7.4.70.0030.01316.38
7.4.60.0060.01216.46
7.4.50.0030.00516.34
7.4.40.0120.00316.49
7.4.30.0000.01516.68
7.4.00.0060.00614.89
7.3.330.0030.00313.38
7.3.320.0060.00013.38
7.3.310.0030.00316.33
7.3.300.0000.00616.29
7.3.290.0070.01116.33
7.3.280.0060.01116.36
7.3.270.0070.01517.40
7.3.260.0000.01716.45
7.3.250.0090.00916.34
7.3.240.0030.01316.50
7.3.230.0070.01016.39
7.3.210.0110.00716.68
7.3.200.0070.01019.39
7.3.190.0120.00316.56
7.3.180.0060.01016.30
7.3.170.0060.01016.63
7.3.160.0090.01216.48
7.3.120.0070.00714.83
7.3.110.0050.01014.89
7.3.100.0020.01014.97
7.3.90.0080.00614.69
7.3.80.0070.00514.92
7.3.70.0040.00814.76
7.3.60.0000.01114.67
7.3.50.0080.00514.73
7.3.40.0030.01014.84
7.3.30.0050.00814.62
7.3.20.0070.00716.71
7.3.10.0020.01316.70
7.3.00.0070.00616.82
7.2.330.0140.01016.75
7.2.320.0110.01116.91
7.2.310.0050.01116.74
7.2.300.0060.01316.60
7.2.290.0030.01316.82
7.2.240.0090.00814.98
7.2.230.0050.01115.03
7.2.220.0080.00815.10
7.2.210.0030.01014.92
7.2.200.0030.01215.09
7.2.190.0090.00814.71
7.2.180.0050.01115.01
7.2.170.0120.00315.07
7.2.160.0050.01114.99
7.2.150.0070.00916.94
7.2.140.0040.00916.94
7.2.130.0060.01016.97
7.2.120.0070.01016.91
7.2.110.0050.00816.93
7.2.100.0050.00916.76
7.2.90.0060.00917.04
7.2.80.0060.00717.00
7.2.70.0050.01016.89
7.2.60.0060.00816.87
7.2.50.0110.00317.00
7.2.40.0110.00516.95
7.2.30.0050.00916.77
7.2.20.0110.00116.96
7.2.10.0060.01116.74
7.2.00.0060.00617.80
7.1.330.0060.00815.90
7.1.320.0020.01315.76
7.1.310.0050.01015.78
7.1.300.0030.01015.75
7.1.290.0100.00515.81
7.1.280.0100.00515.80
7.1.270.0080.01115.83
7.1.260.0090.00815.59
7.1.250.0050.00715.60
7.1.200.0070.00315.70
7.1.100.0000.01118.23
7.1.70.0030.00717.10
7.1.60.0070.01819.61
7.1.50.0190.00634.60
7.1.00.0000.08022.35
7.0.200.0000.01016.54
7.0.140.0030.07322.12
7.0.60.0070.07319.82
7.0.50.0030.04317.73
7.0.40.0070.04320.24
7.0.30.0270.07720.16
7.0.20.0370.04320.24
7.0.10.0130.04720.30
7.0.00.0070.05020.23
5.6.280.0100.06721.11
5.6.210.0130.06020.59
5.6.200.0130.06718.29
5.6.190.0230.06720.48
5.6.180.3570.04020.48
5.6.170.0400.04720.48
5.6.160.0030.08020.54
5.6.150.0030.08018.16
5.6.140.0030.03718.17
5.6.130.0070.08318.28
5.6.120.0070.07721.14
5.6.110.0070.04021.14
5.6.100.0000.05320.89
5.6.90.0070.07721.08
5.6.80.0030.07020.29
5.6.70.0330.06720.54
5.5.350.0270.07320.36
5.5.340.0070.07017.98
5.5.330.0070.04720.47
5.5.320.0370.07720.32
5.5.310.0330.05320.51
5.5.300.0030.07318.01
5.5.290.0070.04018.08
5.5.280.0000.04320.88
5.5.270.0000.04720.64
5.5.260.0030.06020.87
5.5.250.0070.07320.79
5.5.240.0030.05320.27
5.4.450.0270.05719.55
5.4.440.0400.08019.45
5.4.430.0130.06019.32
5.4.420.0170.05319.22
5.4.410.0170.05719.16
5.4.400.0100.07019.00
5.4.390.0200.05319.25
5.4.380.0300.05318.80
5.4.370.0400.05318.73
5.4.360.0270.05718.56
5.4.350.0430.06018.72
5.4.340.0330.06318.63
5.4.320.0100.03512.50
5.4.310.0080.03912.50
5.4.300.0100.03712.50
5.4.290.0080.04112.50
5.4.280.0070.03712.40
5.4.270.0050.04712.40
5.4.260.0060.04312.39
5.4.250.0040.03912.39
5.4.240.0090.03412.40
5.4.230.0130.03812.39
5.4.220.0090.04612.39
5.4.210.0070.04012.39
5.4.200.0090.03512.39
5.4.190.0080.03512.39
5.4.180.0080.03712.38
5.4.170.0100.05012.40
5.4.160.0070.04712.39
5.4.150.0110.03612.38
5.4.140.0070.04112.07
5.4.130.0070.03712.05
5.4.120.0090.03812.02
5.4.110.0070.03912.01
5.4.100.0070.04412.01
5.4.90.0080.03512.02
5.4.80.0100.04012.02
5.4.70.0060.03512.01
5.4.60.0050.03612.01
5.4.50.0040.04112.01
5.4.40.0050.03512.00
5.4.30.0100.03211.99
5.4.20.0060.03411.99
5.4.10.0040.03711.99
5.4.00.0070.03511.48
5.3.290.0070.03912.80
5.3.280.0100.03512.71
5.3.270.0070.03912.72
5.3.260.0040.04312.71
5.3.250.0100.04412.72
5.3.240.0090.04612.72
5.3.230.0120.03612.71
5.3.220.0080.03512.68
5.3.210.0110.03412.68
5.3.200.0070.03612.68
5.3.190.0080.04212.68
5.3.180.0080.03712.67
5.3.170.0070.03612.67
5.3.160.0030.03912.67
5.3.150.0070.03712.67
5.3.140.0060.04212.66
5.3.130.0070.04512.66
5.3.120.0100.03912.66
5.3.110.0080.04112.66
5.3.100.0040.04012.12
5.3.90.0080.03512.11
5.3.80.0050.04212.10
5.3.70.0090.03512.10
5.3.60.0170.04112.08
5.3.50.0140.04712.03
5.3.40.0110.05412.03
5.3.30.0070.03811.99
5.3.20.0070.03411.77
5.3.10.0060.03511.73
5.3.00.0060.03711.73
5.2.170.0050.0349.23
5.2.160.0080.0279.23
5.2.150.0060.0309.23
5.2.140.0090.0279.22
5.2.130.0040.0309.19
5.2.120.0080.0269.19
5.2.110.0100.0319.20
5.2.100.0070.0279.19
5.2.90.0040.0359.19
5.2.80.0070.0339.18
5.2.70.0080.0329.18
5.2.60.0040.0319.14
5.2.50.0070.0319.11
5.2.40.0070.0279.08
5.2.30.0060.0289.05
5.2.20.0050.0299.04
5.2.10.0070.0398.95
5.2.00.0080.0268.81
5.1.60.0040.0288.09
5.1.50.0050.0248.09
5.1.40.0050.0258.07
5.1.30.0050.0268.43
5.1.20.0090.0238.44
5.1.10.0060.0258.17
5.1.00.0060.0308.17
5.0.50.0040.0406.64
5.0.40.0070.0496.50
5.0.30.0050.0446.32
5.0.20.0090.0256.28
5.0.10.0050.0236.26
5.0.00.0050.0306.25
4.4.90.0020.0174.78
4.4.80.0050.0204.76
4.4.70.0060.0184.75
4.4.60.0020.0184.76
4.4.50.0050.0144.77
4.4.40.0050.0234.71
4.4.30.0040.0164.76
4.4.20.0050.0204.85
4.4.10.0030.0154.85
4.4.00.0030.0264.76
4.3.110.0050.0134.67
4.3.100.0030.0154.67
4.3.90.0020.0154.63
4.3.80.0030.0244.58
4.3.70.0020.0154.63
4.3.60.0040.0134.62
4.3.50.0060.0124.63
4.3.40.0020.0244.54
4.3.30.0030.0153.30
4.3.20.0000.0183.28
4.3.10.0030.0153.23
4.3.00.0030.0236.95

preferences:
40.07 ms | 401 KiB | 5 Q