3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface MakeMeCMS_Listener_interface { public function __construct($method, $args); public function setFeedback($arg, $type); } class MakeMeCMS_Listener implements MakeMeCMS_Listener_interface { private $_feedback; private $_type; public function __construct($method, $args) { if(method_exists($this, $method)) { if($args != '') { if(preg_match('#\,#', $args)) { $args = explode(',', $args); } $this->$method($args); } else { $this->$method(); } } } public function setFeedback($arg,$type) { $this->_feedback = $arg; $this->_type = $type; } public function feedback() { return $this->_feedback; } private function test(array $args) { $string = ''; foreach($args as $arg) { $string .= $arg.' '; } $this->setFeedback($string, 'text/plain'); } } class myAddon_Listener extends MakeMeCMS_Listener implements MakeMeCMS_Listener_interface { public function __construct($method, $args) { } public function setFeedback($arg, $type) { parent::setFeedback($arg, $type); } private function test2() { echo('Hello World!'); } } $listener = new MakeMeCMS_Listener('test', 'foo,bar'); echo($listener->feedback());

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.0070.00716.88
8.3.50.0110.01122.11
8.3.40.0110.00418.91
8.3.30.0120.00318.76
8.3.20.0040.00420.07
8.3.10.0040.00423.70
8.3.00.0060.00919.50
8.2.180.0120.00618.18
8.2.170.0070.01422.96
8.2.160.0070.00720.31
8.2.150.0080.00024.18
8.2.140.0060.01024.66
8.2.130.0070.00317.88
8.2.120.0140.00426.35
8.2.110.0000.00919.37
8.2.100.0040.00817.88
8.2.90.0030.00519.29
8.2.80.0030.00617.97
8.2.70.0000.00817.88
8.2.60.0000.00918.16
8.2.50.0000.00918.07
8.2.40.0030.00519.34
8.2.30.0000.00820.71
8.2.20.0050.00417.97
8.2.10.0000.00818.08
8.2.00.0050.00218.21
8.1.280.0070.00725.92
8.1.270.0030.00623.80
8.1.260.0040.00428.09
8.1.250.0030.00528.09
8.1.240.0190.00322.01
8.1.230.0120.00017.66
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.47
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00818.77
8.1.160.0070.00021.97
8.1.150.0040.00418.89
8.1.140.0040.00419.57
8.1.130.0000.00717.84
8.1.120.0070.00017.50
8.1.110.0110.00017.55
8.1.100.0000.00717.61
8.1.90.0040.00417.60
8.1.80.0030.00317.59
8.1.70.0030.00317.64
8.1.60.0080.00017.78
8.1.50.0030.00617.59
8.1.40.0070.00417.58
8.1.30.0000.00917.80
8.1.20.0040.00417.79
8.1.10.0030.00517.70
8.1.00.0080.00017.52
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0000.00718.41
8.0.270.0070.00017.21
8.0.260.0060.00017.29
8.0.250.0000.00717.01
8.0.240.0000.00717.11
8.0.230.0080.00017.13
8.0.220.0040.00416.95
8.0.210.0000.01017.05
8.0.200.0060.00017.16
8.0.190.0050.00317.16
8.0.180.0070.00017.07
8.0.170.0000.00916.99
8.0.160.0080.00017.13
8.0.150.0030.00517.10
8.0.140.0060.00317.00
8.0.130.0060.00013.47
8.0.120.0000.00817.03
8.0.110.0000.00716.97
8.0.100.0050.00216.94
8.0.90.0070.00016.93
8.0.80.0100.01117.11
8.0.70.0040.00417.09
8.0.60.0050.00216.92
8.0.50.0000.00716.92
8.0.30.0050.01217.28
8.0.20.0130.00917.40
8.0.10.0040.00417.01
8.0.00.0120.00616.88
7.4.330.0000.00615.08
7.4.320.0030.00316.74
7.4.300.0030.00316.74
7.4.290.0070.00016.68
7.4.280.0000.00716.77
7.4.270.0040.00416.65
7.4.260.0050.00316.71
7.4.250.0000.00716.71
7.4.240.0030.00416.75
7.4.230.0000.00716.72
7.4.220.0100.01616.77
7.4.210.0140.00016.90
7.4.200.0030.00316.86
7.4.160.0130.00316.70
7.4.150.0150.00317.40
7.4.140.0130.00817.86
7.4.130.0080.00916.72
7.4.120.0120.01016.68
7.4.110.0040.01316.69
7.4.100.0070.01016.48
7.4.90.0030.01416.64
7.4.80.0090.00919.39
7.4.70.0100.01316.71
7.4.60.0030.01416.68
7.4.50.0090.00616.79
7.4.40.0090.00916.78
7.4.30.0110.00716.64
7.4.00.0060.01215.25
7.3.330.0000.00713.30
7.3.320.0000.00613.56
7.3.310.0000.00716.36
7.3.300.0030.00316.49
7.3.290.0090.00816.42
7.3.280.0110.00516.49
7.3.270.0100.00717.40
7.3.260.0030.01316.43
7.3.250.0080.01016.52
7.3.240.0150.00716.50
7.3.230.0090.00916.70
7.3.210.0040.01316.86
7.3.200.0130.01316.92
7.3.190.0090.00916.79
7.3.180.0030.01316.61
7.3.170.0120.00916.61
7.3.160.0120.00316.77
7.3.10.0000.01516.88
7.3.00.0000.01716.86
7.2.330.0120.00616.84
7.2.320.0030.02016.82
7.2.310.0000.01517.00
7.2.300.0070.01416.96
7.2.290.0060.01016.63
7.2.130.0070.01117.28
7.2.120.0100.00317.10
7.2.110.0030.00917.21
7.2.100.0060.00617.13
7.2.90.0030.01116.91
7.2.80.0040.01217.17
7.2.70.0080.00417.12
7.2.60.0110.00416.95
7.2.50.0030.01217.36
7.2.40.0110.00017.24
7.2.30.0060.00917.13
7.2.20.0030.01017.11
7.2.10.0090.00617.23
7.2.00.0070.01018.43
7.1.250.0040.00816.14
7.1.100.0080.00318.56
7.1.70.0030.00717.17
7.1.60.0110.01119.36
7.1.50.0110.00317.19
7.1.00.0070.07322.34
7.0.200.0030.00617.00
7.0.60.0070.08319.79
7.0.50.0070.08017.89
7.0.40.0030.07720.16
7.0.30.0430.07320.25
7.0.20.0270.08020.11
7.0.10.0100.08320.33
7.0.00.0100.09320.34
5.6.280.0030.03021.12
5.6.210.0030.04020.52
5.6.200.0070.03718.29
5.6.190.0100.08720.39
5.6.180.0400.05020.61
5.6.170.0270.04720.62
5.6.160.0100.03720.50
5.6.150.0030.08018.24
5.6.140.0030.07718.14
5.6.130.0030.05318.23
5.6.120.0000.04721.15
5.6.110.0100.05721.15
5.6.100.0100.08320.98
5.6.90.0100.06720.99
5.6.80.0100.06320.47
5.5.350.4100.04320.46
5.5.340.0000.08717.99
5.5.330.0030.07320.41
5.5.320.0130.04320.47
5.5.310.0200.04020.32
5.5.300.0030.04018.05
5.5.290.0070.05718.04
5.5.280.0100.08320.82
5.5.270.0100.08720.86
5.5.260.0130.07720.69
5.5.250.0030.04320.71
5.5.240.0300.06020.18

preferences:
54.17 ms | 401 KiB | 5 Q