3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller { public function testAction() { } public static function staticAction() { } public function __call($method, $arguments) { } } $calls = array( array('Controller', 'testAction'), array('Controller', 'staticAction'), array('Controller', 'fooAction'), array(new Controller, 'testAction'), array(new Controller, 'staticAction'), array(new Controller, 'fooAction'), ); foreach($calls as $call) { var_dump(is_callable($call)); var_dump(is_callable($call) || method_exists($call[0], '__call')); }

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.70.0070.01416.61
8.3.60.0120.00616.25
8.3.50.0070.01116.67
8.3.40.0060.00918.84
8.3.30.0150.00318.86
8.3.20.0120.00318.73
8.3.10.0080.00020.66
8.3.00.0040.00419.38
8.2.180.0040.01516.48
8.2.170.0070.01122.96
8.2.160.0040.01421.02
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.00
8.2.110.0090.00021.19
8.2.100.0070.00717.91
8.2.90.0070.00319.52
8.2.80.0030.00619.34
8.2.70.0040.00417.63
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0000.01118.18
8.2.20.0040.00417.62
8.2.10.0000.00717.84
8.2.00.0000.00917.73
8.1.280.0170.00325.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0040.00820.39
8.1.230.0040.00720.89
8.1.220.0060.00317.74
8.1.210.0050.00318.89
8.1.200.0080.00017.23
8.1.190.0080.00017.52
8.1.180.0050.00318.10
8.1.170.0000.00918.72
8.1.160.0000.00718.96
8.1.150.0030.00618.57
8.1.140.0000.00817.48
8.1.130.0000.00717.84
8.1.120.0040.00317.47
8.1.110.0030.00317.54
8.1.100.0040.00417.46
8.1.90.0040.00417.55
8.1.80.0030.00317.36
8.1.70.0040.00417.40
8.1.60.0060.00317.64
8.1.50.0040.00417.49
8.1.40.0030.00617.44
8.1.30.0060.00317.56
8.1.20.0050.00217.66
8.1.10.0000.00717.58
8.1.00.0050.00217.57
8.0.300.0040.00420.03
8.0.290.0040.00416.58
8.0.280.0050.00218.52
8.0.270.0030.00317.28
8.0.260.0000.00616.85
8.0.250.0040.00417.02
8.0.240.0050.00216.97
8.0.230.0000.00716.96
8.0.220.0000.00616.81
8.0.210.0080.00016.91
8.0.200.0070.00417.02
8.0.190.0000.00917.01
8.0.180.0030.00416.96
8.0.170.0030.00616.93
8.0.160.0050.00316.88
8.0.150.0080.00016.86
8.0.140.0030.00516.89
8.0.130.0000.00713.31
8.0.120.0040.00416.91
8.0.110.0020.00516.87
8.0.100.0000.00716.90
8.0.90.0030.00616.89
8.0.80.0000.01616.89
8.0.70.0000.00716.77
8.0.60.0050.00316.73
8.0.50.0040.00416.91
8.0.30.0090.01117.26
8.0.20.0120.00816.90
8.0.10.0070.00017.14
8.0.00.0090.01216.83
7.4.330.0050.00012.99
7.4.320.0040.00416.42
7.4.300.0000.00616.59
7.4.290.0070.00016.61
7.4.280.0000.00816.51
7.4.270.0040.00416.52
7.4.260.0030.00313.30
7.4.250.0060.00316.37
7.4.240.0030.00416.60
7.4.230.0030.00316.72
7.4.220.0070.00716.57
7.4.210.0080.00816.56
7.4.200.0000.00816.60
7.4.190.0030.00316.46
7.4.160.0130.00316.39
7.4.150.0130.00516.54
7.4.140.0090.00816.53
7.4.130.0110.00816.52
7.4.120.0080.01116.57
7.4.110.0100.01316.54
7.4.100.0110.01116.59
7.4.90.0060.01316.56
7.4.80.0140.00319.39
7.4.70.0140.00316.36
7.4.60.0120.00616.46
7.4.50.0130.00016.35
7.4.40.0030.00916.34
7.4.30.0100.01016.61
7.4.00.0030.01414.87
7.3.330.0030.00413.39
7.3.320.0050.00013.40
7.3.310.0030.00316.28
7.3.300.0060.00016.37
7.3.290.0080.00816.34
7.3.280.0090.00816.35
7.3.270.0180.00616.69
7.3.260.0080.01216.55
7.3.250.0110.00816.53
7.3.240.0100.01316.64
7.3.230.0130.00416.21
7.3.210.0110.00616.44
7.3.200.0060.00916.30
7.3.190.0090.01316.50
7.3.180.0060.01016.43
7.3.170.0070.01416.41
7.3.160.0160.00016.44
7.3.120.0080.00414.67
7.2.330.0150.00916.71
7.2.320.0090.00916.54
7.2.310.0140.00316.50
7.2.300.0190.00316.63
7.2.290.0060.01216.64
7.2.60.0030.01016.96
7.2.00.0000.01119.12
7.1.200.0000.01415.91
7.1.100.0000.01418.32
7.1.70.0140.00317.04
7.1.60.0060.01919.40
7.1.50.0070.01416.93
7.1.00.0030.06022.51
7.0.200.0000.00716.89
7.0.140.0000.07022.08
7.0.120.0000.07322.08
7.0.60.0100.05319.95
7.0.50.0030.08017.89
7.0.40.0030.09020.11
7.0.30.0200.04320.08
7.0.20.0330.06720.18
7.0.10.0370.05720.19
7.0.00.0100.06320.24
5.6.210.0100.03720.73
5.6.200.0070.05018.25
5.6.190.0030.04320.34
5.6.180.0300.05320.68
5.6.170.0200.04320.57
5.6.160.0070.05320.44
5.6.150.0070.08018.17
5.6.140.0130.07718.27
5.6.130.0130.03018.18
5.6.120.0100.08320.90
5.6.110.0070.08021.14
5.6.100.0070.06321.07
5.6.90.0070.06321.02
5.6.80.0030.06720.42
5.6.70.0200.03320.52
5.5.350.0330.07720.52
5.5.340.0100.05318.06
5.5.330.0000.04320.40
5.5.320.0070.04720.25
5.5.310.0230.08020.21
5.5.300.0130.06717.98
5.5.290.0100.05018.00
5.5.280.0070.07020.90
5.5.270.0100.08020.77
5.5.260.0070.03720.67
5.5.250.0130.07320.57
5.5.240.0100.05320.12
5.4.450.0070.08019.31
5.4.440.0100.04319.47
5.4.430.0030.08319.44
5.4.420.0000.04319.46
5.4.410.0070.06319.31
5.4.400.0100.07319.21
5.4.390.0070.06018.87
5.4.380.0070.05319.11
5.4.370.0070.06719.16
5.4.360.0100.06018.84
5.4.350.0100.07319.00
5.4.340.0000.08018.87
5.4.320.0070.07318.98
5.4.310.0030.07019.19
5.4.300.0100.03719.14
5.4.290.0100.07019.00
5.4.280.0100.07019.28
5.4.270.0070.04319.24
5.4.260.0100.07019.14
5.4.250.0070.03318.99
5.4.240.0000.05719.20
5.4.230.0100.04319.23
5.4.220.0130.03019.00
5.4.210.0000.04718.97
5.4.200.0030.03719.13
5.4.190.0000.04018.99
5.4.180.0030.03719.23
5.4.170.0030.04319.04
5.4.160.0030.03718.96
5.4.150.0030.04719.09
5.4.140.0030.03716.29
5.4.130.0030.03716.34
5.4.120.0070.03016.30
5.4.110.0030.03716.30
5.4.100.0070.03316.46
5.4.90.0000.04016.41
5.4.80.0000.03716.38
5.4.70.0030.03316.42
5.4.60.0000.03716.45
5.4.50.0070.03016.26
5.4.40.0070.03016.44
5.4.30.0030.04016.25
5.4.20.0100.03016.45
5.4.10.0000.04016.50
5.4.00.0100.03015.94
5.3.290.0070.04714.62
5.3.280.0030.04014.59
5.3.270.0030.05314.66
5.3.260.0000.08314.53
5.3.250.0030.03714.50
5.3.240.0070.03314.66
5.3.230.0030.03714.66
5.3.220.0030.03714.57
5.3.210.0000.04314.52
5.3.200.0000.03714.61
5.3.190.0030.03714.62
5.3.180.0030.03714.45
5.3.170.0030.03714.64
5.3.160.0030.04314.71
5.3.150.0030.03314.58
5.3.140.0030.03714.45
5.3.130.0070.03314.57
5.3.120.0030.03714.59
5.3.110.0030.03714.55
5.3.100.0070.03314.18
5.3.90.0200.02714.04
5.3.80.0000.03714.02
5.3.70.0000.03714.10
5.3.60.0000.03714.16
5.3.50.0070.03314.09
5.3.40.0070.03013.84
5.3.30.0030.03713.99
5.3.20.0030.03713.84
5.3.10.0130.06013.56
5.3.00.0000.06713.69
5.2.170.0070.02711.20
5.2.160.0030.03311.15
5.2.150.0070.02711.08
5.2.140.0000.03311.30
5.2.130.0030.05011.16
5.2.120.0070.03011.27
5.2.110.0000.04011.05
5.2.100.0000.04311.17
5.2.90.0000.04311.16
5.2.80.0000.04011.15
5.2.70.0030.03011.07
5.2.60.0130.02011.01
5.2.50.0030.06311.08
5.2.40.0030.05010.96
5.2.30.0070.06310.95
5.2.20.0070.06011.00
5.2.10.0130.05311.02
5.2.00.0030.04310.68
5.1.60.0100.0379.98
5.1.50.0030.03010.16
5.1.40.0000.0279.98
5.1.30.0100.03710.39
5.1.20.0030.03310.37
5.1.10.0000.03710.05
5.1.00.0070.03010.06
5.0.50.0030.0238.61
5.0.40.0070.0278.57
5.0.30.0000.0678.37
5.0.20.0000.0308.22
5.0.10.0000.0338.23
5.0.00.0000.0678.19
4.4.90.0000.0377.73
4.4.80.0070.0337.73
4.4.70.0000.0407.73
4.4.60.0030.0337.73
4.4.50.0000.0237.73
4.4.40.0000.0307.73
4.4.30.0030.0137.73
4.4.20.0000.0237.73
4.4.10.0000.0177.73
4.4.00.0000.0507.73
4.3.110.0000.0377.73
4.3.100.0000.0407.73
4.3.90.0000.0377.73
4.3.80.0100.0437.73
4.3.70.0070.0207.73
4.3.60.0030.0177.73
4.3.50.0000.0337.73
4.3.40.0000.0537.73
4.3.30.0000.0237.73
4.3.20.0030.0177.73
4.3.10.0000.0237.73
4.3.00.0000.0207.73

preferences:
74.2 ms | 401 KiB | 5 Q