3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Test{ public function testtreit(){ return 'Это трейт !'; } } class MyProxy { protected $_object = null; protected $_methods = array(); public function __construct($object) { if (!is_object($object)) { throw new InvalidArgumentException('$object must be an object'); } $this->_object = $object; } public function __call($name, $arguments) { return $this->callMethod($name, $arguments); } public function setMethod($name, Closure $method) { $this->_methods[(string) $key] = $method; } public function callMethod($name, array $arguments) { if (isset($this->_methods[$name])) { return call_user_func_array($this->_methods[$name], $arguments); } return call_user_func_array(array($this->_object, $name), $arguments); } } $ar = new MyProxy(); $ar->testtreit(); ?>

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.01116.88
8.3.50.0120.00421.92
8.3.40.0090.00618.97
8.3.30.0070.00718.89
8.3.20.0070.00020.21
8.3.10.0050.00323.61
8.3.00.0040.00419.97
8.2.180.0110.00818.19
8.2.170.0040.01522.96
8.2.160.0040.01120.29
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00821.06
8.2.120.0080.00026.35
8.2.110.0030.00620.52
8.2.100.0090.00318.04
8.2.90.0030.00619.09
8.2.80.0060.00317.97
8.2.70.0000.00817.61
8.2.60.0060.00317.90
8.2.50.0030.00518.07
8.2.40.0080.00021.16
8.2.30.0040.00420.63
8.2.20.0000.00717.69
8.2.10.0040.00418.08
8.2.00.0020.00518.07
8.1.280.0120.00325.92
8.1.270.0090.00018.70
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0070.01423.99
8.1.230.0080.00417.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00917.61
8.1.180.0000.00818.10
8.1.170.0080.00018.52
8.1.160.0050.00220.65
8.1.150.0000.00718.71
8.1.140.0000.00819.48
8.1.130.0030.00517.55
8.1.120.0080.00017.38
8.1.110.0000.00817.25
8.1.100.0000.00717.28
8.1.90.0070.00017.37
8.1.80.0030.00617.24
8.1.70.0080.00017.20
8.1.60.0000.00817.56
8.1.50.0000.00817.46
8.1.40.0060.00317.36
8.1.30.0040.00417.52
8.1.20.0030.00517.60
8.1.10.0040.00417.52
8.1.00.0100.00017.54
8.0.300.0000.00818.77
8.0.290.0060.00316.63
8.0.280.0040.00418.34
8.0.270.0040.00417.10
8.0.260.0000.00617.28
8.0.250.0000.00617.00
8.0.240.0000.00716.89
8.0.230.0000.00716.89
8.0.220.0040.00416.93
8.0.210.0030.00316.79
8.0.200.0000.00616.95
8.0.190.0040.00416.97
8.0.180.0070.00016.86
8.0.170.0030.00516.84
8.0.160.0000.00816.96
8.0.150.0000.00716.91
8.0.140.0040.00416.82
8.0.130.0000.00713.34
8.0.120.0030.00516.71
8.0.110.0040.00416.98
8.0.100.0080.00016.71
8.0.90.0030.00316.79
8.0.80.0130.00616.91
8.0.70.0000.00716.86
8.0.60.0080.00016.71
8.0.50.0030.00516.80
8.0.30.0090.00717.13
8.0.20.0110.01317.40
8.0.10.0030.00617.02
8.0.00.0080.00916.89
7.4.330.0030.00316.77
7.4.320.0060.00016.34
7.4.300.0030.00316.50
7.4.290.0000.00716.47
7.4.280.0000.00816.59
7.4.270.0000.00716.52
7.4.260.0030.00316.57
7.4.250.0030.00616.43
7.4.240.0020.00616.54
7.4.230.0070.00016.61
7.4.220.0110.00716.39
7.4.210.0120.00616.67
7.4.200.0030.00516.21
7.4.160.0080.00616.66
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0110.00716.50
7.4.120.0130.01016.66
7.4.110.0090.00916.50
7.4.100.0060.01216.70
7.4.90.0140.00316.55
7.4.80.0190.00419.39
7.4.70.0230.00016.35
7.4.60.0150.00316.52
7.4.50.0100.00616.23
7.4.40.0080.00816.61
7.4.30.0110.00616.49
7.4.00.0040.00914.73
7.3.330.0000.00813.21
7.3.320.0060.00013.34
7.3.310.0000.00816.38
7.3.300.0000.00616.39
7.3.290.0110.00316.39
7.3.280.0120.00716.39
7.3.270.0110.00617.40
7.3.260.0100.01016.43
7.3.250.0090.01116.38
7.3.240.0050.01616.31
7.3.230.0200.00316.50
7.3.210.0030.01316.39
7.3.200.0120.00616.41
7.3.190.0090.01316.36
7.3.180.0030.01416.48
7.3.170.0100.00716.31
7.3.160.0110.00616.42
7.2.330.0030.01616.56
7.2.320.0100.00716.26
7.2.310.0090.01216.67
7.2.300.0060.01016.37
7.2.290.0140.00416.62
7.2.60.0110.00616.61
7.2.00.0060.00919.25
7.1.200.0100.00315.43
7.1.100.0040.01118.21
7.1.70.0030.01017.10
7.1.60.0090.01519.50
7.1.50.0070.01716.83
7.1.00.0030.07322.51
7.0.200.0070.00316.85
7.0.60.0070.08320.05
7.0.50.0070.08318.04
7.0.40.0100.06020.25
7.0.30.0300.05020.20
7.0.20.0300.06320.11
7.0.10.0030.05020.19
7.0.00.0100.05320.20
5.6.280.0000.03321.16
5.6.210.0030.05320.53
5.6.200.0070.03718.20
5.6.190.0030.06020.63
5.6.180.0400.06320.46
5.6.170.0230.04320.54
5.6.160.0030.04320.45
5.6.150.0070.06318.19
5.6.140.0030.05718.25
5.6.130.0030.05018.28
5.6.120.0100.08721.03
5.6.110.0100.08320.98
5.6.100.0070.05021.05
5.6.90.0130.08020.89
5.6.80.0100.04320.29
5.5.350.0100.08020.39
5.5.340.0030.04317.94
5.5.330.0070.09020.19
5.5.320.0000.08320.51
5.5.310.0100.04720.35
5.5.300.0070.06717.95
5.5.290.0070.06017.98
5.5.280.0030.05720.97
5.5.270.0130.05020.88
5.5.260.0170.07020.85
5.5.250.0030.04020.73
5.5.240.0030.07020.24

preferences:
61.5 ms | 401 KiB | 5 Q