3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function run() { } static function srun() { } } var_dump(is_callable(["foo", "run"])); var_dump(is_callable(["foo", "srun"])); var_dump(is_callable(["foo", "run"], true)); var_dump(is_callable([new Foo, "run"]));

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.0120.00318.18
8.3.50.0100.01016.18
8.3.40.0070.00721.71
8.3.30.0180.00018.59
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.180.0130.00325.92
8.2.170.0070.01118.79
8.2.160.0110.00422.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00021.04
8.2.110.0140.00720.57
8.2.100.0080.00419.53
8.2.90.0040.00417.63
8.2.80.0080.00018.78
8.2.70.0030.00617.50
8.2.60.0000.00917.38
8.2.50.0040.00418.05
8.2.40.0000.00819.61
8.2.30.0040.00417.91
8.2.20.0040.00417.96
8.2.10.0050.00219.04
8.2.00.0050.00219.03
8.1.280.0000.01425.92
8.1.270.0000.00823.84
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0080.00020.88
8.1.230.0110.00022.67
8.1.220.0000.01118.51
8.1.210.0030.00618.77
8.1.200.0000.00917.41
8.1.190.0030.00617.10
8.1.180.0030.00618.10
8.1.170.0070.00018.97
8.1.160.0000.00818.73
8.1.150.0040.00418.69
8.1.140.0070.00018.80
8.1.130.0030.00317.42
8.1.120.0000.00717.43
8.1.110.0050.00217.39
8.1.100.0000.00817.39
8.1.90.0000.00717.39
8.1.80.0080.00017.26
8.1.70.0070.00017.33
8.1.60.0000.00817.47
8.1.50.0070.00017.45
8.1.40.0000.00717.47
8.1.30.0030.00517.57
8.1.20.0040.00417.46
8.1.10.0070.00317.43
8.1.00.0030.00617.39
8.0.300.0050.00218.77
8.0.290.0040.00416.58
8.0.280.0070.00018.43
8.0.270.0000.00717.98
8.0.260.0040.00416.77
8.0.250.0030.00316.98
8.0.240.0030.00316.96
8.0.230.0040.00416.89
8.0.220.0030.00316.77
8.0.210.0040.00416.79
8.0.200.0030.00316.86
8.0.190.0000.00716.87
8.0.180.0040.00416.84
8.0.170.0030.00616.73
8.0.160.0000.00716.73
8.0.150.0050.00216.75
8.0.140.0050.00216.69
8.0.130.0000.00613.24
8.0.120.0040.00416.79
8.0.110.0030.00516.88
8.0.100.0000.00716.77
8.0.90.0050.00216.81
8.0.80.0110.00516.74
8.0.70.0040.00416.71
8.0.60.0040.00416.81
8.0.50.0070.00016.88
8.0.30.0030.01416.92
8.0.20.0050.01416.83
8.0.10.0030.00516.98
8.0.00.0140.00316.57
7.4.330.0050.00015.55
7.4.320.0000.00616.53
7.4.300.0030.00316.56
7.4.290.0000.00716.52
7.4.280.0080.00016.36
7.4.270.0000.00616.37
7.4.260.0040.00416.55
7.4.250.0050.00216.49
7.4.240.0040.00416.43
7.4.230.0080.00016.26
7.4.220.0040.00316.48
7.4.210.0070.00916.38
7.4.200.0030.00316.30
7.4.130.0120.00616.50
7.4.120.0070.01616.37
7.4.110.0080.00816.40
7.4.100.0140.00616.26
7.4.90.0060.01116.24
7.4.80.0140.00516.26
7.4.70.0090.01016.12
7.4.60.0060.01016.28
7.4.50.0100.00716.16
7.4.40.0080.00816.04
7.4.30.0110.00816.24
7.4.20.0070.01116.29
7.4.10.0130.01116.04
7.4.00.0050.01216.41
7.3.330.0050.00216.25
7.3.320.0060.00013.19
7.3.310.0070.00016.06
7.3.300.0000.00716.23
7.3.290.0070.01416.24
7.3.260.0190.00316.23
7.3.230.0100.00816.17
7.3.220.0090.00816.48
7.3.210.0110.00916.02
7.3.200.0150.00216.06
7.3.190.0090.00715.86
7.3.180.0110.00516.06
7.3.170.0100.00916.07
7.3.160.0100.00816.28
7.3.150.0080.00816.25
7.3.140.0100.01016.19
7.3.130.0130.00715.89
7.3.120.0120.00715.95
7.3.110.0060.01016.04
7.3.100.0090.00716.15
7.3.90.0090.00916.13
7.3.80.0070.01016.11
7.3.70.0090.00816.21
7.3.60.0040.01216.09
7.3.50.0090.00616.14
7.3.40.0070.00916.17
7.3.30.0090.01115.96
7.3.20.0430.00216.02
7.3.10.0090.00916.04
7.3.00.0040.01216.00
7.2.340.0130.00516.34
7.2.330.0130.00816.42
7.2.320.0100.00716.27
7.2.310.0100.00716.17
7.2.300.0060.01116.29
7.2.290.0090.00816.33
7.2.280.0140.00416.28
7.2.270.0130.00516.17
7.2.260.0180.00516.10
7.2.250.0110.00916.52
7.2.240.0110.00816.34
7.2.230.0130.00516.34
7.2.220.0100.00716.38
7.2.210.0060.01016.18
7.2.200.0100.00716.52
7.2.190.0060.01116.16
7.2.180.0070.01016.30
7.2.170.0100.00616.32
7.2.160.0130.00316.31
7.2.150.0050.01216.30
7.2.140.0110.00616.38
7.2.130.0120.00616.48
7.2.120.0110.00616.31
7.2.110.0100.00716.29
7.2.100.0060.01116.49
7.2.90.0120.00516.43
7.2.80.0080.01216.45
7.2.70.0120.00516.42
7.2.60.0120.00616.32
7.2.50.0140.00416.49
7.2.40.0120.01016.50
7.2.30.0120.01116.44
7.2.20.0090.01116.38
7.2.10.0270.00816.38
7.2.00.0100.00916.53

preferences:
36.36 ms | 404 KiB | 6 Q