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 Apple(); $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.0110.00716.75
8.3.50.0100.00617.80
8.3.40.0040.01118.94
8.3.30.0120.00318.49
8.3.20.0040.00420.18
8.3.10.0040.00423.66
8.3.00.0040.00419.91
8.2.180.0080.00818.13
8.2.170.0040.01122.96
8.2.160.0110.00320.57
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00421.09
8.2.120.0050.00226.35
8.2.110.0060.00320.38
8.2.100.0080.00317.80
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0060.00317.91
8.2.50.0000.00818.07
8.2.40.0090.00021.09
8.2.30.0000.00820.52
8.2.20.0000.00717.58
8.2.10.0000.00717.89
8.2.00.0070.00017.89
8.1.280.0070.01425.92
8.1.270.0080.00018.81
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0040.00817.52
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00917.25
8.1.190.0050.00317.70
8.1.180.0000.00818.10
8.1.170.0080.00018.50
8.1.160.0080.00020.53
8.1.150.0050.00318.83
8.1.140.0060.00319.51
8.1.130.0000.00717.63
8.1.120.0040.00417.33
8.1.110.0040.00417.26
8.1.100.0070.00017.21
8.1.90.0000.00717.34
8.1.80.0030.00617.34
8.1.70.0050.00317.21
8.1.60.0000.00817.40
8.1.50.0040.00417.45
8.1.40.0030.00917.51
8.1.30.0090.00017.68
8.1.20.0000.00817.63
8.1.10.0040.00417.36
8.1.00.0040.00817.38
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0030.00318.44
8.0.270.0000.00717.26
8.0.260.0070.00017.23
8.0.250.0030.00316.89
8.0.240.0030.00316.99
8.0.230.0030.00316.97
8.0.220.0000.00716.83
8.0.210.0000.00716.96
8.0.200.0030.00316.88
8.0.190.0050.00316.87
8.0.180.0040.00416.97
8.0.170.0050.00216.99
8.0.160.0000.00716.80
8.0.150.0040.00416.85
8.0.140.0030.00316.77
8.0.130.0040.00413.33
8.0.120.0030.00616.76
8.0.110.0050.00316.86
8.0.100.0000.00716.94
8.0.90.0070.00016.73
8.0.80.0100.01016.84
8.0.70.0000.00716.88
8.0.60.0000.00816.97
8.0.50.0000.00816.94
8.0.30.0070.00717.01
8.0.20.0110.00917.40
8.0.10.0080.00016.80
8.0.00.0110.00716.78
7.4.330.0030.00316.79
7.4.320.0000.00716.40
7.4.300.0060.00016.54
7.4.290.0040.00416.47
7.4.280.0050.00316.50
7.4.270.0030.00316.48
7.4.260.0040.00416.45
7.4.250.0070.00016.41
7.4.240.0050.00216.51
7.4.230.0000.00716.22
7.4.220.0090.00916.40
7.4.210.0110.00316.58
7.4.200.0080.00016.36
7.4.160.0070.00716.37
7.4.150.0180.00317.40
7.4.140.0140.00417.86
7.4.130.0140.01116.57
7.4.120.0100.01316.40
7.4.110.0110.00716.53
7.4.100.0060.01216.47
7.4.90.0100.00716.51
7.4.80.0100.01319.39
7.4.70.0090.01216.34
7.4.60.0170.00016.58
7.4.50.0130.00316.41
7.4.40.0100.00616.49
7.4.30.0030.01416.46
7.4.00.0060.00714.82
7.3.330.0040.00413.26
7.3.320.0060.00013.31
7.3.310.0000.00716.33
7.3.300.0030.00316.20
7.3.290.0050.01216.31
7.3.280.0070.01016.29
7.3.270.0150.00317.40
7.3.260.0100.01416.40
7.3.240.0090.01016.44
7.3.230.0060.01216.50
7.3.210.0070.01016.50
7.3.200.0150.00616.24
7.3.190.0130.00816.59
7.3.180.0140.00316.52
7.3.170.0060.00916.32
7.3.160.0070.01716.18
7.3.120.0110.00714.81
7.3.110.0100.00715.02
7.3.100.0050.00514.76
7.3.90.0040.00814.68
7.3.80.0030.00614.88
7.3.70.0040.00814.86
7.3.60.0120.00614.88
7.3.50.0000.00814.43
7.3.40.0070.01114.72
7.3.30.0040.01514.84
7.3.20.0030.00916.53
7.3.10.0090.00616.48
7.3.00.0060.00616.59
7.2.330.0070.01116.72
7.2.320.0120.00616.68
7.2.310.0070.01016.38
7.2.300.0080.00816.55
7.2.290.0090.00916.40
7.2.240.0070.00714.70
7.2.230.0040.01114.80
7.2.220.0000.00914.98
7.2.210.0060.00914.74
7.2.200.0070.01014.77
7.2.190.0050.00514.65
7.2.180.0070.00414.96
7.2.170.0100.00714.68
7.2.160.0100.00314.69
7.2.150.0040.00816.75
7.2.140.0090.00616.67
7.2.130.0060.01016.90
7.2.120.0060.00916.66
7.2.110.0100.00316.71
7.2.100.0080.00416.84
7.2.90.0130.00316.85
7.2.80.0090.00316.96
7.2.70.0000.01216.66
7.2.60.0090.00516.83
7.2.50.0040.01116.62
7.2.40.0070.00416.61
7.2.30.0030.01016.81
7.2.20.0030.00916.61
7.2.10.0030.01016.64
7.2.00.0030.01117.96
7.1.330.0040.01115.52
7.1.320.0070.00315.45
7.1.310.0050.00515.59
7.1.300.0040.00815.53
7.1.290.0000.01215.65
7.1.280.0070.00715.58
7.1.270.0040.01415.55
7.1.260.0070.00715.48
7.1.250.0100.00315.38
7.1.200.0000.01515.69
7.1.100.0060.00917.90
7.1.70.0040.00816.74
7.1.60.0110.01419.50
7.1.50.0100.01316.86
7.1.00.0070.07722.54
7.0.200.0030.00616.59
7.0.60.0100.06319.95
7.0.50.0030.08017.96
7.0.40.0030.05020.24
7.0.30.0300.07320.21
7.0.20.0330.07720.09
7.0.10.0000.05720.24
7.0.00.0130.08020.18
5.6.280.0070.02720.90
5.6.210.0070.04020.54
5.6.200.0100.03318.25
5.6.190.0170.08020.33
5.6.180.0570.05320.62
5.6.170.0300.07320.50
5.6.160.0070.07720.39
5.6.150.0030.07318.29
5.6.140.0130.07018.17
5.6.130.0030.04318.21
5.6.120.0100.06321.01
5.6.110.0000.09720.99
5.6.100.0070.05720.97
5.6.90.0070.08320.98
5.6.80.0100.07320.49
5.5.350.0070.08320.41
5.5.340.0030.03717.96
5.5.330.0070.10720.21
5.5.320.0100.08020.34
5.5.310.0200.07020.51
5.5.300.0070.04018.07
5.5.290.0200.07017.95
5.5.280.0130.05020.91
5.5.270.0100.07720.89
5.5.260.0000.08020.76
5.5.250.0070.04020.70
5.5.240.0070.05320.08

preferences:
49.35 ms | 401 KiB | 5 Q