3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App { class Util { public function getGenres(){} } class A { public function notCallable() { return \is_callable(['Util', 'getGenres']); } public function isCallable() { return \is_callable(['App\Util', 'getGenres']); } } } namespace B { $a = new \App\A(); \var_dump($a->notCallable()); \var_dump($a->isCallable()); }

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.120.0160.00720.52
8.4.110.0140.00619.74
8.4.100.0060.00317.69
8.4.90.0110.00520.47
8.4.80.0100.00517.70
8.4.70.0150.00717.76
8.4.60.0040.00418.98
8.4.50.0120.00817.73
8.4.40.0050.00519.23
8.4.30.0200.00019.27
8.4.20.0190.00020.33
8.4.10.0080.00317.80
8.3.250.0040.00416.63
8.3.240.0110.00616.48
8.3.230.0140.00616.42
8.3.220.0090.00720.87
8.3.210.0040.00316.61
8.3.200.0050.00716.58
8.3.190.0060.00217.24
8.3.180.0120.00716.46
8.3.170.0090.00918.88
8.3.160.0070.01316.81
8.3.150.0190.00020.62
8.3.140.0110.00716.75
8.3.130.0100.01018.37
8.3.120.0060.00318.93
8.3.110.0170.00316.64
8.3.100.0030.00616.67
8.3.90.0150.00419.89
8.3.80.0060.00318.30
8.3.70.0140.00716.63
8.3.60.0110.01118.56
8.3.50.0100.00817.38
8.3.40.0180.00318.49
8.3.30.0120.00318.42
8.3.20.0080.00018.85
8.3.10.0030.00521.84
8.3.00.0040.00420.77
8.2.290.0120.00716.57
8.2.280.0050.00318.34
8.2.270.0100.01017.17
8.2.260.0040.00418.55
8.2.250.0080.00018.36
8.2.240.0060.00316.44
8.2.230.0070.00320.94
8.2.220.0090.00024.06
8.2.210.0040.00426.77
8.2.200.0090.00018.29
8.2.190.0070.00718.39
8.2.180.0140.00316.63
8.2.170.0060.00922.96
8.2.160.0040.01122.08
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00421.04
8.2.120.0080.00026.35
8.2.110.0030.00619.17
8.2.100.0030.00917.91
8.2.90.0040.00417.75
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0030.00618.03
8.2.50.0080.00018.10
8.2.40.0120.00019.30
8.2.30.0050.00319.23
8.2.20.0040.00418.05
8.2.10.0000.00717.99
8.2.00.0030.00619.38
8.1.330.0130.00716.04
8.1.320.0080.01116.16
8.1.310.0040.00416.61
8.1.300.0100.00016.13
8.1.290.0060.00318.88
8.1.280.0030.01025.92
8.1.270.0050.00322.19
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00619.10
8.1.230.0000.01018.96
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.01017.37
8.1.190.0080.00017.23
8.1.180.0110.00018.10
8.1.170.0050.00318.59
8.1.160.0040.00418.77
8.1.150.0000.00818.72
8.1.140.0040.00422.18
8.1.130.0000.00720.09
8.1.120.0080.00017.32
8.1.110.0000.00717.40
8.1.100.0000.00717.41
8.1.90.0040.00417.25
8.1.80.0040.00417.43
8.1.70.0030.00317.35
8.1.60.0060.00317.47
8.1.50.0080.00817.47
8.1.40.0000.00717.40
8.1.30.0040.00417.59
8.1.20.0000.00817.54
8.1.10.0080.00017.52
8.1.00.0020.00517.45
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0070.00018.30
8.0.270.0000.00717.09
8.0.260.0000.00718.37
8.0.250.0030.00316.87
8.0.240.0030.00316.76
8.0.230.0000.00616.90
8.0.220.0040.00316.78
8.0.210.0040.00416.77
8.0.200.0030.00316.83
8.0.190.0040.00416.76
8.0.180.0040.00416.75
8.0.170.0040.00416.89
8.0.160.0070.00016.78
8.0.150.0040.00716.81
8.0.140.0000.00816.67
8.0.130.0000.00513.18
8.0.120.0040.00416.75
8.0.110.0070.00016.71
8.0.100.0030.00516.93
8.0.90.0030.00416.88
8.0.80.0060.00816.82
8.0.70.0040.00416.69
8.0.60.0000.00716.77
8.0.50.0040.00416.68
8.0.30.0030.01316.79
8.0.20.0100.00917.40
8.0.10.0000.00716.88
8.0.00.0100.00716.64
7.4.330.0020.00215.55
7.4.320.0030.00316.54
7.4.300.0030.00316.63
7.4.290.0000.00716.56
7.4.280.0040.00416.63
7.4.270.0000.00716.59
7.4.260.0030.00316.60
7.4.250.0040.00416.53
7.4.240.0000.00716.65
7.4.230.0030.00316.69
7.4.220.0000.00916.60
7.4.210.0100.00516.64
7.4.200.0050.00216.53
7.4.160.0100.00916.44
7.4.140.0110.00817.86
7.4.130.0100.01316.52
7.4.120.0080.01116.41
7.4.110.0040.01816.44
7.4.100.0060.01016.57
7.4.90.0200.00316.45
7.4.80.0100.00619.39
7.4.70.0060.01216.31
7.4.60.0090.00616.43
7.4.50.0070.01116.42
7.4.40.0110.01116.60
7.4.10.0100.01014.62
7.4.00.0090.00614.78
7.3.330.0060.00013.24
7.3.320.0060.00013.24
7.3.310.0040.00416.27
7.3.300.0000.00716.23
7.3.290.0030.00316.24
7.3.280.0100.00816.27
7.3.260.0110.00916.36
7.3.240.0110.00716.33
7.3.230.0060.01016.11
7.3.210.0180.00016.46
7.3.200.0030.01516.14
7.3.190.0090.00916.21
7.3.180.0070.00716.40
7.3.170.0070.01016.27
7.3.160.0120.00416.27
7.3.130.0120.00614.97
7.3.120.0100.00714.80
7.3.110.0060.01214.69
7.3.100.0060.00714.66
7.3.90.0130.00314.76
7.3.80.0060.00714.50
7.3.70.0050.00614.63
7.3.60.0060.00614.69
7.3.50.0060.00714.60
7.3.40.0040.00714.72
7.3.30.0060.00514.50
7.3.20.0040.00916.60
7.3.10.0050.00816.49
7.3.00.0070.00616.50
7.2.330.0150.00416.37
7.2.320.0110.00716.27
7.2.310.0070.01016.45
7.2.300.0150.00316.49
7.2.290.0080.01516.32
7.2.260.0200.00014.83
7.2.250.0070.00914.90
7.2.240.0080.01014.92
7.2.230.0030.01015.13
7.2.220.0060.01014.76
7.2.210.0050.00914.94
7.2.200.0080.00614.85
7.2.190.0070.00814.88
7.2.180.0040.00814.79
7.2.170.0060.00614.94
7.2.160.0070.00714.82
7.2.150.0030.01017.02
7.2.140.0030.01116.49
7.2.130.0000.01416.86
7.2.120.0290.00715.73
7.2.110.0230.00915.71
7.2.100.0230.00915.66
7.2.90.0240.00715.71
7.2.80.0270.01015.75
7.2.70.0710.00515.81
7.2.60.0450.00615.68
7.2.50.0400.00515.68
7.2.40.0290.00815.85
7.2.30.0280.00815.89
7.2.20.0370.00315.74
7.2.10.0410.00515.94
7.2.00.0340.00315.80
7.1.330.0070.00715.40
7.1.320.0060.00615.64
7.1.310.0030.00915.60
7.1.300.0070.00815.70
7.1.290.0070.00615.69
7.1.280.0050.00515.55
7.1.270.0050.00915.57
7.1.260.0050.00815.50
7.1.250.0070.00715.75
7.1.240.0250.01014.64
7.1.230.0470.00314.74
7.1.220.0210.00614.76
7.1.210.0390.00814.85
7.1.200.0220.00714.66
7.1.190.0300.00614.72
7.1.180.0230.01014.80
7.1.170.0300.00514.69
7.1.160.0350.00814.85
7.1.150.0270.01014.65
7.1.140.0350.00614.80
7.1.130.0280.00814.64
7.1.120.0310.00614.83
7.1.110.0310.00514.66
7.1.100.0520.00814.66
7.1.90.0410.00714.68
7.1.80.0650.00314.70
7.1.70.0250.01014.88
7.1.60.0430.00614.78
7.1.50.0280.00814.57
7.1.40.0230.01214.69
7.1.30.0390.00914.76
7.1.20.0430.00514.63
7.1.10.0450.00614.51
7.1.00.0490.00514.70
7.0.330.0030.01015.04
7.0.320.0050.00515.34
7.0.310.0030.01115.11
7.0.300.0030.00715.31
7.0.290.0040.01115.37
7.0.280.0040.00815.38
7.0.270.0070.00315.07
7.0.260.0090.00615.30
7.0.250.0120.00615.51
7.0.240.0110.00415.46
7.0.230.0030.01315.07
7.0.220.0000.01415.24
7.0.210.0030.00915.28
7.0.200.0000.01315.38
7.0.190.0040.00715.18
7.0.180.0100.00615.13
7.0.170.0120.00315.47
7.0.160.0070.00315.44
7.0.150.0040.00715.35
7.0.140.0040.00815.51
7.0.130.0060.01115.37
7.0.120.0030.01215.32
7.0.110.0090.00415.40
7.0.100.0030.00915.43
7.0.90.0030.00615.06
7.0.80.0040.00815.48
7.0.70.0070.00315.11
7.0.60.0060.00315.32
7.0.50.0080.00515.43
7.0.40.0030.01013.10
7.0.30.0040.00813.18
7.0.20.0000.00813.38
7.0.10.0100.00313.30
7.0.00.0090.00613.48
5.6.400.0030.00614.20
5.6.390.0140.00014.41
5.6.380.0050.00914.40
5.6.370.0040.00413.99
5.6.360.0100.00714.17
5.6.350.0090.00014.29
5.6.340.0030.00614.12
5.6.330.0090.00614.27
5.6.320.0060.00614.40
5.6.310.0050.00513.90
5.6.300.0030.00914.48
5.6.290.0070.00414.51
5.6.280.0000.01214.18
5.6.270.0070.00714.28
5.6.260.0030.00614.15
5.6.250.0090.00614.39
5.6.240.0030.00914.19
5.6.230.0060.00314.68
5.6.220.0060.00614.36
5.6.210.0110.00314.05
5.6.200.0090.00314.29
5.6.190.0040.01114.37
5.6.180.0030.00914.26
5.6.170.0000.01114.27
5.6.160.0090.00614.58
5.6.150.0000.00914.28
5.6.140.0070.00314.49
5.6.130.0060.00314.29
5.6.120.0040.01114.09
5.6.110.0040.01114.03
5.6.100.0090.00614.39
5.6.90.0100.00014.44
5.6.80.0030.00514.09
5.6.70.0000.01014.24
5.6.60.0110.00414.49
5.6.50.0110.00414.00
5.6.40.0060.00314.29
5.6.30.0040.00414.24
5.6.20.0000.01114.35
5.6.10.0040.00714.31
5.6.00.0060.00614.17

preferences:
28.13 ms | 403 KiB | 5 Q