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 $controller) { $data = array(); try { $r = new ReflectionMethod($controller[0], $controller[1]); $data['controller'] = array( 'class' => is_object($controller[0]) ? get_class($controller[0]) : $controller[0], 'method' => $controller[1], 'file' => $r->getFilename(), 'line' => $r->getStartLine(), ); } catch (ReflectionException $re) { if (is_callable($controller) || method_exists($controller[0], '__call')) { $r = new ReflectionClass($controller[0]); // using __call magic $data['controller'] = array( 'class' => is_object($controller[0]) ? get_class($controller[0]) : $controller[0], 'method' => $controller[1], 'file' => $r->getFilename(), 'line' => $r->getMethod('__call')->getStartLine(), ); } } var_dump($data); }

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.0110.00417.00
8.3.50.0050.01321.98
8.3.40.0110.00718.93
8.3.30.0090.00618.92
8.3.20.0040.00420.30
8.3.10.0040.00423.63
8.3.00.0030.00520.87
8.2.180.0070.01116.50
8.2.170.0090.00622.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0120.00626.16
8.2.120.0080.00022.27
8.2.110.0060.00322.25
8.2.100.0080.00418.03
8.2.90.0000.00819.25
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00918.16
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0000.00818.19
8.2.20.0080.00017.75
8.2.10.0050.00317.95
8.2.00.0040.00417.85
8.1.280.0160.00625.92
8.1.270.0000.00823.97
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0060.00323.93
8.1.230.0060.00618.98
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00717.35
8.1.190.0040.00417.63
8.1.180.0040.00418.10
8.1.170.0030.00618.57
8.1.160.0000.00822.12
8.1.150.0000.00718.61
8.1.140.0030.00517.51
8.1.130.0030.00317.75
8.1.120.0000.00717.50
8.1.110.0040.00417.49
8.1.100.0000.00817.50
8.1.90.0070.00017.43
8.1.80.0080.00017.47
8.1.70.0000.00717.43
8.1.60.0030.00617.67
8.1.50.0030.00617.47
8.1.40.0000.00817.59
8.1.30.0000.00817.67
8.1.20.0040.00417.67
8.1.10.0040.00417.66
8.1.00.0000.00817.45
8.0.300.0000.00718.77
8.0.290.0040.00417.11
8.0.280.0030.00318.54
8.0.270.0000.00717.22
8.0.260.0000.00716.86
8.0.250.0070.00017.10
8.0.240.0040.00417.12
8.0.230.0060.00317.02
8.0.220.0030.00316.93
8.0.210.0040.00417.01
8.0.200.0030.00316.93
8.0.190.0110.00017.06
8.0.180.0000.00717.02
8.0.170.0080.00017.05
8.0.160.0040.00417.03
8.0.150.0040.00416.99
8.0.140.0000.00817.03
8.0.130.0000.00513.39
8.0.120.0040.00416.86
8.0.110.0000.00816.88
8.0.100.0000.00716.88
8.0.90.0070.00016.96
8.0.80.0030.01516.89
8.0.70.0050.00317.00
8.0.60.0030.00517.05
8.0.50.0040.00416.96
8.0.30.0080.01317.20
8.0.20.0100.01017.40
8.0.10.0000.00717.13
8.0.00.0140.00716.86
7.4.330.0000.00515.20
7.4.320.0030.00316.63
7.4.300.0030.00616.56
7.4.290.0000.00716.66
7.4.280.0070.00016.55
7.4.270.0050.00316.67
7.4.260.0030.00316.55
7.4.250.0000.00716.58
7.4.240.0000.00716.58
7.4.230.0030.00316.49
7.4.220.0030.01216.68
7.4.210.0090.00816.68
7.4.200.0070.00016.71
7.4.190.0030.00516.70
7.4.160.0090.00916.53
7.4.150.0040.01617.40
7.4.140.0050.01417.86
7.4.130.0090.00916.64
7.4.120.0110.00816.47
7.4.110.0070.01116.55
7.4.100.0030.01516.49
7.4.90.0090.00916.60
7.4.80.0140.00419.39
7.4.70.0060.01116.55
7.4.60.0100.00716.55
7.4.50.0000.00716.32
7.4.40.0050.00922.77
7.4.30.0060.01216.48
7.4.00.0100.00715.23
7.3.330.0050.00013.39
7.3.320.0030.00313.49
7.3.310.0040.00416.52
7.3.300.0070.00016.47
7.3.290.0070.00716.47
7.3.280.0110.00916.44
7.3.270.0150.00917.40
7.3.260.0140.00716.64
7.3.250.0160.00316.61
7.3.240.0080.01116.61
7.3.230.0130.00316.41
7.3.210.0090.00916.60
7.3.200.0210.00319.39
7.3.190.0090.00916.59
7.3.180.0060.01016.54
7.3.170.0070.01016.52
7.3.160.0080.01016.61
7.3.120.0030.01315.02
7.3.110.0100.00315.12
7.3.100.0030.01215.16
7.3.90.0080.00415.02
7.3.80.0110.00414.95
7.3.70.0030.01214.88
7.3.60.0070.01015.02
7.3.50.0030.01314.41
7.3.40.0040.00714.78
7.3.30.0030.01215.00
7.3.20.0040.00716.59
7.3.10.0070.01016.41
7.3.00.0060.01016.55
7.2.330.0100.01016.83
7.2.320.0160.00816.84
7.2.310.0070.01116.54
7.2.300.0100.01016.70
7.2.290.0070.01116.58
7.2.240.0070.01015.10
7.2.230.0030.01215.23
7.2.220.0040.01415.21
7.2.210.0110.00415.05
7.2.200.0100.00315.32
7.2.190.0030.01414.80
7.2.180.0100.00714.98
7.2.170.0000.01515.18
7.2.160.0070.01015.30
7.2.150.0070.01017.05
7.2.140.0090.00317.09
7.2.130.0040.01117.04
7.2.120.0110.00416.71
7.2.110.0080.00416.90
7.2.100.0040.01016.59
7.2.90.0120.00316.85
7.2.80.0030.00917.12
7.2.70.0070.01017.14
7.2.60.0070.00716.98
7.2.50.0090.00316.89
7.2.40.0040.01417.00
7.2.30.0110.00816.85
7.2.20.0000.01216.87
7.2.10.0120.00616.98
7.2.00.0020.01318.20
7.1.330.0090.00615.56
7.1.320.0100.00315.84
7.1.310.0040.01115.84
7.1.300.0040.00815.87
7.1.290.0090.00615.83
7.1.280.0060.00315.66
7.1.270.0090.00915.84
7.1.260.0100.00715.91
7.1.250.0090.00615.80
7.1.200.0000.01315.96
7.1.100.0320.00818.29
7.1.70.0040.01117.14
7.1.60.0150.01119.29
7.1.50.0100.01316.96
7.1.00.0000.08022.31
7.0.200.0030.00616.82
7.0.140.0070.07021.99
7.0.70.0670.04019.91
7.0.60.0730.05319.98
7.0.50.0700.05720.32
7.0.40.0100.08320.00
7.0.30.0070.04020.14
7.0.20.0030.08720.00
7.0.10.0070.06020.07
7.0.00.0100.05020.12
5.6.280.0030.07321.12
5.6.220.0070.04020.66
5.6.210.0030.07720.75
5.6.200.0100.03721.04
5.6.190.0100.08021.19
5.6.180.0070.08321.05
5.6.170.0000.07721.09
5.6.160.0030.08021.13
5.6.150.0070.08321.15
5.6.140.0130.08021.18
5.6.130.0070.09020.95
5.6.120.0170.07320.96
5.6.110.0100.06021.11
5.6.100.0170.05321.10
5.6.90.0070.07721.01
5.6.80.0100.06320.33
5.6.70.0130.07720.33
5.6.60.0000.07020.41
5.6.50.0100.08320.47
5.6.40.0030.05320.50
5.6.30.0100.06320.32
5.6.20.0100.08720.48
5.6.10.0070.08020.32
5.6.00.0130.07720.29
5.5.360.0130.07320.45
5.5.350.0070.06320.41
5.5.340.0070.04020.92
5.5.330.0100.06720.84
5.5.320.0170.07720.93
5.5.310.0030.05320.66
5.5.300.0130.08020.83
5.5.290.0030.08320.79
5.5.280.0100.08320.80
5.5.270.0100.08320.94
5.5.260.0030.05020.92
5.5.250.0070.08020.75
5.5.240.0030.08020.29
5.5.230.0100.07720.19
5.5.220.0100.06320.32
5.5.210.0100.07720.28
5.5.200.0030.08020.14
5.5.190.0070.04320.17
5.5.180.0100.08020.20
5.5.160.0100.04320.23
5.5.150.0030.05320.13
5.5.140.0100.08720.09
5.5.130.0070.06020.20
5.5.120.0130.07720.25
5.5.110.0000.08320.23
5.5.100.0030.04320.12
5.5.90.0030.08020.09
5.5.80.0100.08020.09
5.5.70.0030.05720.10
5.5.60.0200.06719.93
5.5.50.0100.08019.98
5.5.40.0200.06720.09
5.5.30.0130.07320.12
5.5.20.0000.08720.12
5.5.10.0070.07719.98
5.5.00.0100.07720.04
5.4.450.0100.07319.46
5.4.440.0030.06019.27
5.4.430.0000.09019.46
5.4.420.0100.06019.53
5.4.410.0070.04019.36
5.4.400.0030.07718.95
5.4.390.0230.06319.14
5.4.380.0000.08319.09
5.4.370.0070.08019.03
5.4.360.0130.07019.12
5.4.350.0100.08019.12
5.4.340.0070.07318.95
5.4.320.0100.07719.14
5.4.310.0070.05019.18
5.4.300.0030.08319.12
5.4.290.0100.07319.24
5.4.280.0070.07019.12
5.4.270.0100.07719.02
5.4.260.0070.06719.13
5.4.250.0030.03718.94
5.4.240.0070.07719.13
5.4.230.0100.05319.03
5.4.220.0170.06718.86
5.4.210.0170.07019.13
5.4.200.0130.06718.86
5.4.190.0130.05718.92
5.4.180.0030.08319.11
5.4.170.0070.04719.11
5.4.160.0200.05719.16
5.4.150.0100.07718.85
5.4.140.0030.07716.46
5.4.130.0130.05316.45
5.4.120.0100.07716.50
5.4.110.0030.07016.36
5.4.100.0030.06016.50
5.4.90.0100.07016.37
5.4.80.0100.06316.50
5.4.70.0100.07016.48
5.4.60.0130.07016.46
5.4.50.0070.07716.36
5.4.40.0030.08016.49
5.4.30.0170.06316.33
5.4.20.0000.04016.25
5.4.10.0000.08316.40
5.4.00.0030.06015.87
5.3.290.0130.04014.80
5.3.280.0070.04714.63
5.3.270.0070.07714.69
5.3.260.0000.06014.55
5.3.250.0030.08314.57
5.3.240.0130.05014.55
5.3.230.0070.06014.71
5.3.220.0030.07314.54
5.3.210.0030.08314.60
5.3.200.0030.06714.62
5.3.190.0100.07714.68
5.3.180.0070.07714.65
5.3.170.0030.08314.51
5.3.160.0130.07014.63
5.3.150.0200.06714.58
5.3.140.0070.06714.63
5.3.130.0100.07714.56
5.3.120.0130.03714.49
5.3.110.0070.07714.66
5.3.100.0130.07313.98
5.3.90.0070.06014.09
5.3.80.0030.08714.05
5.3.70.0030.04314.17
5.3.60.0100.04013.96
5.3.50.0070.08013.98
5.3.40.0030.07313.98
5.3.30.0070.08013.93
5.3.20.0100.06713.76
5.3.10.0100.04713.74
5.3.00.0030.06013.76
5.2.170.0030.06312.25
5.2.160.0130.05712.25
5.2.150.0030.04712.25
5.2.140.0000.06712.25
5.2.130.0030.06312.25
5.2.120.0030.07012.25
5.2.110.0130.05712.25
5.2.100.0030.06712.25
5.2.90.0030.06712.25
5.2.80.0000.06712.25
5.2.70.0030.06712.25
5.2.60.0070.06012.25
5.2.50.0130.05712.25
5.2.40.0030.06312.25
5.2.30.0030.03712.25
5.2.20.0070.06712.25
5.2.10.0070.06312.25
5.2.00.0070.05312.25
5.1.60.0030.04012.25
5.1.50.0070.04712.25
5.1.40.0030.05312.25
5.1.30.0030.06012.25
5.1.20.0100.02712.25
5.1.10.0000.06012.25
5.1.00.0030.04012.25
5.0.50.0100.02712.25
5.0.40.0070.04012.25
5.0.30.0030.05712.25
5.0.20.0030.03712.25
5.0.10.0130.03312.25
5.0.00.0030.05012.25
4.4.90.0070.02012.25
4.4.80.0100.03012.25
4.4.70.0070.02012.25
4.4.60.0070.01712.25
4.4.50.0030.02312.25
4.4.40.0000.05712.25
4.4.30.0130.01712.25
4.4.20.0030.03712.25
4.4.10.0100.01312.25
4.4.00.0030.05312.25
4.3.110.0000.03312.25
4.3.100.0070.02712.25
4.3.90.0030.03712.25
4.3.80.0070.04712.25
4.3.70.0070.03012.25
4.3.60.0030.03312.25
4.3.50.0100.01712.25
4.3.40.0030.05012.25
4.3.30.0100.03012.25
4.3.20.0000.03312.25
4.3.10.0030.03312.25
4.3.00.0000.03712.25

preferences:
37.76 ms | 401 KiB | 5 Q