3v4l.org

run code in 300+ PHP versions simultaneously
<?php class obj { protected function protected_function(){ return true; } public function internal_is_callable(){ var_dump(is_callable([$this, "protected_function"])); } } $obj = new obj(); # If called from "outside" a class, is_callable() will return FALSE var_dump(is_callable([$obj, "protected_function"])); //returns bool(false) # Confusingly, if called from "inside" a class, is_callable() will return TRUE $obj->internal_is_callable(); //returns bool(true)

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.130.0130.00817.88
8.4.120.0120.00822.27
8.4.110.0100.01022.52
8.4.100.0130.00718.88
8.4.90.0130.00720.27
8.4.80.0080.00018.79
8.4.70.0140.00817.57
8.4.60.0110.00923.93
8.4.50.0040.00518.93
8.4.40.0080.01219.49
8.4.30.0120.00320.56
8.4.20.0160.00320.76
8.4.10.0100.00719.55
8.3.260.0130.00716.48
8.3.250.0020.00518.66
8.3.240.0140.00516.42
8.3.230.0090.00616.44
8.3.220.0110.00818.69
8.3.210.0100.00418.34
8.3.200.0070.00216.41
8.3.190.0100.00617.08
8.3.180.0110.00618.97
8.3.170.0160.00316.44
8.3.160.0030.00617.18
8.3.150.0120.00618.99
8.3.140.0040.00416.48
8.3.130.0030.00518.45
8.3.120.0090.00918.87
8.3.110.0080.01120.94
8.3.100.0000.00916.62
8.3.90.0050.00318.43
8.3.80.0090.00018.43
8.3.70.0160.00016.63
8.3.60.0070.01118.45
8.3.50.0100.00517.46
8.3.40.0150.00018.84
8.3.30.0150.00018.62
8.3.20.0000.00720.73
8.3.10.0040.00423.65
8.3.00.0040.00421.00
8.2.290.0120.00716.75
8.2.280.0100.00918.46
8.2.270.0090.00916.75
8.2.260.0080.00016.47
8.2.250.0040.00418.45
8.2.240.0160.00319.21
8.2.230.0040.00422.58
8.2.220.0030.00624.06
8.2.210.0140.00026.77
8.2.200.0030.00618.17
8.2.190.0070.00716.58
8.2.180.0160.00316.61
8.2.170.0150.00022.96
8.2.160.0070.00720.58
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00320.93
8.2.110.0110.01120.39
8.2.100.0070.00417.72
8.2.90.0080.00017.59
8.2.80.0050.00319.23
8.2.70.0050.00317.63
8.2.60.0000.00817.78
8.2.50.0060.00318.07
8.2.40.0000.00818.02
8.2.30.0000.00817.95
8.2.20.0000.00718.07
8.2.10.0040.00419.23
8.2.00.0000.00718.18
8.1.330.0120.00716.29
8.1.320.0110.00915.96
8.1.310.0030.00516.22
8.1.300.0110.00817.80
8.1.290.0090.00018.88
8.1.280.0100.00725.92
8.1.270.0090.00520.32
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0040.00423.92
8.1.230.0080.00320.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.12
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0040.00418.84
8.1.160.0040.00418.76
8.1.150.0040.00418.93
8.1.140.0030.00318.96
8.1.130.0040.00417.45
8.1.120.0000.00717.46
8.1.110.0030.00317.42
8.1.100.0040.00417.47
8.1.90.0040.00417.45
8.1.80.0040.00717.46
8.1.70.0030.00517.44
8.1.60.0040.00417.57
8.1.50.0000.00817.41
8.1.40.0060.00317.52
8.1.30.0000.00817.48
8.1.20.0040.00417.68
8.1.10.0060.00317.60
8.1.00.0040.00417.55
8.0.300.0070.00019.96
8.0.290.0020.00516.75
8.0.280.0000.00718.45
8.0.270.0000.00716.82
8.0.260.0050.00216.86
8.0.250.0040.00416.94
8.0.240.0030.00316.82
8.0.230.0030.00316.93
8.0.220.0070.00016.91
8.0.210.0030.00316.93
8.0.200.0040.00416.88
8.0.190.0040.00416.86
8.0.180.0000.00716.84
8.0.170.0090.00016.80
8.0.160.0000.00716.83
8.0.150.0040.00316.86
8.0.140.0000.00716.85
8.0.130.0030.00313.30
8.0.120.0030.00316.81
8.0.110.0000.00716.87
8.0.100.0040.00416.76
8.0.90.0040.00317.01
8.0.80.0060.01316.88
8.0.70.0000.00816.69
8.0.60.0050.00316.74
8.0.50.0050.00316.88
8.0.30.0150.00317.14
8.0.20.0130.00717.43
8.0.10.0000.00716.89
8.0.00.0100.00816.80
7.4.330.0060.00016.69
7.4.320.0000.00616.58
7.4.300.0030.00316.40
7.4.290.0070.00016.65
7.4.280.0030.00516.51
7.4.270.0080.00016.63
7.4.260.0050.00216.60
7.4.250.0000.00716.49
7.4.240.0000.00816.61
7.4.230.0000.00716.51
7.4.220.0080.00016.58
7.4.210.0130.00416.63
7.4.200.0070.00016.53
7.4.160.0090.00716.45
7.4.140.0110.01117.86
7.4.130.0120.00616.44
7.4.120.0000.01816.47
7.4.110.0090.00616.59
7.4.100.0140.00416.50
7.4.90.0070.01016.45
7.4.80.0110.00519.39
7.4.70.0090.00916.46
7.4.60.0130.00616.64
7.4.50.0110.00816.48
7.4.40.0060.01616.45
7.4.30.0090.01216.45
7.4.20.0110.00816.62
7.4.10.0100.00815.74
7.4.00.0100.00615.33
7.3.330.0060.00013.25
7.3.320.0000.00513.26
7.3.310.0000.00716.20
7.3.300.0030.00316.32
7.3.290.0040.00416.27
7.3.280.0080.00816.27
7.3.260.0090.00816.42
7.3.240.0140.00616.42
7.3.230.0130.00316.37
7.3.210.0070.01016.36
7.3.200.0100.00616.14
7.3.190.0120.00616.45
7.3.180.0040.01316.23
7.3.170.0070.01616.40
7.3.160.0020.01616.25
7.3.150.0110.00716.22
7.3.140.0070.01116.43
7.3.130.0080.01115.66
7.3.120.0100.00615.32
7.3.110.0100.00715.38
7.3.100.0070.01215.34
7.3.90.0070.01015.32
7.3.80.0030.01115.40
7.3.70.0080.00515.16
7.3.60.0060.00815.22
7.3.50.0090.01015.26
7.3.40.0070.00715.14
7.3.30.0040.01115.18
7.3.20.0090.01016.04
7.3.10.0060.01016.07
7.3.00.0060.00816.06
7.2.330.0100.00716.80
7.2.320.0160.00716.45
7.2.310.0140.00616.62
7.2.300.0130.00716.60
7.2.290.0080.01516.40
7.2.280.0070.01016.73
7.2.270.0110.00816.44
7.2.260.0080.01215.86
7.2.250.0090.01115.51
7.2.240.0040.01315.40
7.2.230.0070.00915.47
7.2.220.0040.01415.31
7.2.210.0020.01315.48
7.2.200.0070.00915.32
7.2.190.0060.01115.48
7.2.180.0090.00515.53
7.2.170.0090.00515.32
7.2.160.0040.01215.41
7.2.150.0110.00616.06
7.2.140.0140.00416.27
7.2.130.0080.00916.28
7.2.120.0200.00916.13
7.2.110.0120.01016.21
7.2.100.0110.00916.22
7.2.90.0140.00516.19
7.2.80.0090.00516.13
7.2.70.0070.01016.04
7.2.60.0080.01016.06
7.2.50.0080.01016.11
7.2.40.0620.00916.22
7.2.30.0090.00916.23
7.2.20.0090.01216.11
7.2.10.0100.01016.22
7.2.00.0060.01316.14
7.1.330.0070.00915.76
7.1.320.0110.00515.73
7.1.310.0130.00315.71
7.1.300.0090.00915.58
7.1.290.0070.00915.66
7.1.280.0190.00515.24
7.1.270.0100.00715.18
7.1.260.0050.01015.26
7.1.250.0110.00514.98
7.1.240.0080.00715.58
7.1.230.0070.00815.74
7.1.220.0070.01115.69
7.1.210.0090.00615.68
7.1.200.0040.01015.68
7.1.190.0180.00715.64
7.1.180.0110.00815.62
7.1.170.0120.00715.70
7.1.160.0090.00315.67
7.1.150.0100.00615.53
7.1.140.0100.00515.63
7.1.130.0040.01115.62
7.1.120.0060.01015.54
7.1.110.0130.00315.67
7.1.100.0230.01115.79
7.1.90.0170.00915.82
7.1.80.0140.01015.56
7.1.70.0050.00915.75
7.1.60.0060.00815.58
7.1.50.0050.01015.61
7.1.40.0070.00815.61
7.1.30.0050.00715.58
7.1.20.0070.00815.77
7.1.10.0040.01115.67
7.1.00.0050.00915.63
5.4.160.0110.00714.16

preferences:
108.47 ms | 403 KiB | 5 Q