3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(method_exists('ArrayObject', 'offsetSet')); // output: true var_export(is_callable(array(new ArrayObject, 'offsetSet'))); // output: true var_export(is_callable(array('ArrayObject', 'offsetSet'))); // output: false die; class A { static function b() { return 'soy b static'; } function a() { return 'soy a'; } } //$z=new a; //var_dump(is_callable($z::b())); $b=[new a, 'b']; var_dump(is_callable($b, false, $ret)); var_dump($ret); var_dump(get_defined_vars());

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.0210.00018.07
8.3.50.0140.00320.96
8.3.40.0100.01018.85
8.3.30.0140.00020.34
8.3.20.0060.00319.98
8.3.10.0030.00521.09
8.3.00.0040.00422.37
8.2.180.0110.00716.38
8.2.170.0150.00022.96
8.2.160.0130.00722.25
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0030.00526.16
8.2.120.0070.00020.83
8.2.110.0090.00020.51
8.2.100.0080.00418.03
8.2.90.0040.00418.99
8.2.80.0060.00317.97
8.2.70.0040.00717.63
8.2.60.0030.00517.67
8.2.50.0040.00418.07
8.2.40.0080.00018.03
8.2.30.0000.00719.31
8.2.20.0060.00317.63
8.2.10.0040.00417.74
8.2.00.0020.00517.66
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00023.76
8.1.230.0040.00719.15
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.36
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0040.00422.00
8.1.150.0080.00018.57
8.1.140.0050.00317.30
8.1.130.0000.00717.76
8.1.120.0000.00717.28
8.1.110.0030.00617.35
8.1.100.0000.00717.44
8.1.90.0000.00817.28
8.1.80.0000.00717.38
8.1.70.0000.00717.28
8.1.60.0000.00717.58
8.1.50.0040.00417.45
8.1.40.0030.00517.45
8.1.30.0040.00417.49
8.1.20.0000.00817.45
8.1.10.0040.00417.42
8.1.00.0090.00017.33
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.44
8.0.270.0030.00617.25
8.0.260.0030.00316.80
8.0.250.0060.00317.06
8.0.240.0000.00817.04
8.0.230.0040.00416.85
8.0.220.0000.00616.95
8.0.210.0000.00716.77
8.0.200.0000.00617.00
8.0.190.0030.00316.97
8.0.180.0040.00416.82
8.0.170.0000.00716.75
8.0.160.0030.00316.75
8.0.150.0050.00216.81
8.0.140.0090.00316.85
8.0.130.0000.00713.32
8.0.120.0000.00816.85
8.0.110.0040.00416.82
8.0.100.0080.00016.93
8.0.90.0030.00316.92
8.0.80.0140.00316.94
8.0.70.0040.00416.91
8.0.60.0030.00316.98
8.0.50.0000.00716.69
8.0.30.0140.00517.16
8.0.20.0130.00617.40
8.0.10.0000.00716.86
8.0.00.0030.01416.65
7.4.330.0000.00516.82
7.4.320.0000.00616.45
7.4.300.0060.00016.55
7.4.290.0000.00716.45
7.4.280.0000.00716.54
7.4.270.0050.00216.46
7.4.260.0030.00313.24
7.4.250.0030.00516.30
7.4.240.0000.00716.48
7.4.230.0000.00716.48
7.4.220.0100.01616.39
7.4.210.0060.00816.56
7.4.200.0000.00716.37
7.4.190.0000.00716.62
7.4.160.0070.01316.44
7.4.150.0080.01117.40
7.4.140.0160.00517.86
7.4.130.0110.00916.46
7.4.120.0100.00916.39
7.4.110.0110.00716.55
7.4.100.0060.01016.58
7.4.90.0150.00316.47
7.4.80.0090.00919.39
7.4.70.0120.00916.63
7.4.60.0140.00316.44
7.4.50.0030.00516.56
7.4.40.0130.00222.77
7.4.30.0100.00616.57
7.4.00.0070.01114.86
7.3.330.0030.00313.13
7.3.320.0050.00013.16
7.3.310.0000.00716.29
7.3.300.0080.00016.21
7.3.290.0040.01016.30
7.3.280.0060.01016.29
7.3.270.0110.00717.40
7.3.260.0100.00818.24
7.3.250.0110.00916.45
7.3.240.0090.00916.54
7.3.230.0030.01416.39
7.3.210.0070.01016.24
7.3.200.0090.01319.39
7.3.190.0070.01016.30
7.3.180.0130.00316.46
7.3.170.0090.00616.37
7.3.160.0110.00716.25
7.3.120.0080.00814.69
7.3.110.0100.01014.44
7.3.100.0000.01214.87
7.3.90.0000.01214.73
7.3.80.0070.01014.66
7.3.70.0040.00714.61
7.3.60.0060.00914.74
7.3.50.0080.00414.75
7.3.40.0090.00614.69
7.3.30.0040.00814.73
7.3.20.0030.01016.33
7.3.10.0030.00916.35
7.3.00.0060.01016.65
7.2.330.0070.01116.45
7.2.320.0190.00416.81
7.2.310.0100.01416.48
7.2.300.0030.01516.56
7.2.290.0070.01016.57
7.2.250.0130.00314.89
7.2.240.0000.01915.06
7.2.230.0090.00915.21
7.2.220.0030.00714.83
7.2.210.0070.01015.26
7.2.200.0030.00714.78
7.2.190.0030.01414.93
7.2.180.0030.01314.84
7.2.170.0100.00614.75
7.2.60.0090.00616.82
7.2.00.0000.01219.33
7.1.330.0110.00315.74
7.1.320.0090.00615.61
7.1.310.0110.00615.57
7.1.300.0080.00815.59
7.1.290.0070.00715.38
7.1.280.0070.00715.61
7.1.270.0040.00415.60
7.1.260.0000.01115.33
7.1.200.0160.01015.68
7.1.100.0000.01117.91
7.1.70.0030.00917.05
7.1.60.0060.01919.17
7.1.50.0130.00716.89
7.1.00.0030.03322.45
7.0.200.0050.00216.68
7.0.140.0100.06722.11
7.0.60.0070.03719.84
7.0.50.0100.08017.91
7.0.40.0170.07020.09
7.0.30.0200.04720.09
7.0.20.0200.07320.15
7.0.10.0200.06720.10
7.0.00.0030.06720.06
5.6.280.0070.07020.85
5.6.210.0030.07720.53
5.6.200.0030.09018.22
5.6.190.0070.09020.39
5.6.180.0470.07320.55
5.6.170.0330.05320.55
5.6.160.0030.08020.55
5.6.150.0100.03318.15
5.6.140.0030.07018.28
5.6.130.0170.06318.28
5.6.120.0030.09021.02
5.6.110.0030.06720.98
5.6.100.0170.06321.04
5.6.90.0000.05021.07
5.6.80.0070.08020.51
5.5.350.0270.06720.40
5.5.340.0100.06717.94
5.5.330.0030.08720.57
5.5.320.0130.08720.35
5.5.310.0170.05720.34
5.5.300.0130.04718.08
5.5.290.0030.04017.94
5.5.280.0030.04320.88
5.5.270.0100.03720.65
5.5.260.0130.06720.77
5.5.250.0070.08720.58
5.5.240.0100.07020.15
5.4.450.0270.05719.57
5.4.440.0200.05719.19
5.4.430.0130.04719.41
5.4.420.0270.05719.57
5.4.410.0130.04319.33
5.4.400.0300.03319.07
5.4.390.0230.03319.16
5.4.380.0100.04718.87
5.4.370.0130.05019.06
5.4.360.0200.03719.08
5.4.350.0200.05019.08
5.4.340.0230.06319.13
5.4.320.0300.04018.98
5.4.310.0270.03319.23
5.4.300.0230.04019.16
5.4.290.0170.05019.09
5.4.280.0300.06718.87
5.4.270.0230.07319.09
5.4.260.0270.05319.03
5.4.250.0170.04319.15
5.4.240.0200.04318.96
5.4.230.0200.03319.13
5.4.220.0170.03318.87
5.4.210.0170.03719.23
5.4.200.0170.03319.31
5.4.190.0130.04319.18
5.4.180.0130.03719.07
5.4.170.0170.03719.30
5.4.160.0300.03019.11
5.4.150.0130.03719.20
5.4.140.0130.03716.34
5.4.130.0130.04016.41
5.4.120.0070.04016.66
5.4.110.0070.04016.63
5.4.100.0130.04016.55
5.4.90.0130.03316.21
5.4.80.0200.03316.40
5.4.70.0170.03316.52
5.4.60.0130.03316.55
5.4.50.0170.03016.30
5.4.40.0170.03716.54
5.4.30.0170.03016.52
5.4.20.0170.03316.41
5.4.10.0170.04316.34
5.4.00.0170.03315.75
5.3.290.0200.04314.65
5.3.280.0200.04014.57
5.3.270.0030.06014.59
5.3.260.0200.04014.58
5.3.250.0170.04014.66
5.3.240.0100.04014.61
5.3.230.0170.03314.50
5.3.220.0170.03714.73
5.3.210.0130.03714.64
5.3.200.0170.03314.65
5.3.190.0130.03714.79
5.3.180.0200.03014.54
5.3.170.0200.03714.67
5.3.160.0130.03714.62
5.3.150.0270.06314.54
5.3.140.0100.04014.53
5.3.130.0100.04314.55
5.3.120.0130.03714.53
5.3.110.0200.03314.55
5.3.100.0170.03314.26
5.3.90.0130.05313.93
5.3.80.0100.07014.14
5.3.70.0100.07014.02
5.3.60.0230.05013.93
5.3.50.0200.07013.96
5.3.40.0270.04313.88
5.3.30.0230.07013.84
5.3.20.0170.07313.63
5.3.10.0230.06013.56
5.3.00.0370.06013.65
5.2.170.0230.05712.50
5.2.160.0200.05712.50
5.2.150.0230.02712.50
5.2.140.0200.05012.50
5.2.130.0170.06012.50
5.2.120.0200.04312.50
5.2.110.0170.03712.50
5.2.100.0200.06312.50
5.2.90.0200.06012.50
5.2.80.0200.05712.50
5.2.70.0200.06312.50
5.2.60.0170.06012.50
5.2.50.0170.05012.50
5.2.40.0170.05312.50
5.2.30.0170.04312.50
5.2.20.0170.03712.50
5.2.10.0130.04312.50
5.2.00.0270.05012.50
5.1.60.0170.03312.50
5.1.50.0170.03312.50
5.1.40.0200.04312.50
5.1.30.0070.03712.50
5.1.20.0130.05012.50
5.1.10.0200.04712.50
5.1.00.0170.04712.50
5.0.50.0100.04712.50
5.0.40.0130.03712.50
5.0.30.0070.06712.50
5.0.20.0100.02712.50
5.0.10.0070.05012.50
5.0.00.0100.04012.50
4.4.90.0030.04012.50
4.4.80.0070.02012.50
4.4.70.0070.03012.50
4.4.60.0070.02712.50
4.4.50.0070.02712.50
4.4.40.0100.05312.50
4.4.30.0070.02312.50
4.4.20.0100.02012.50
4.4.10.0070.03712.50
4.4.00.0070.05712.50
4.3.110.0100.02012.50
4.3.100.0030.03012.50
4.3.90.0170.01312.50
4.3.80.0070.05712.50
4.3.70.0170.02712.50
4.3.60.0100.03712.50
4.3.50.0070.03012.50
4.3.40.0100.04312.50
4.3.30.0030.03712.50
4.3.20.0030.03712.50
4.3.10.0130.01712.50
4.3.00.0030.03312.50

preferences:
73.04 ms | 401 KiB | 5 Q