3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MproObject implements IteratorAggregate, ArrayAccess, Serializable, Countable { /** * Returns whether the requested key exists * * @param mixed $key * @return bool */ public function __isset($key) { } /** * Sets the value at the specified key to value * * @param mixed $key * @param mixed $value * @return void */ public function __set($key, $value) { } /** * Unsets the value at the specified key * * @param mixed $key * @return void */ public function __unset($key) { } /** * Returns the value at the specified key by reference * * @param mixed $key * @return mixed */ public function &__get($key) { } /** * Appends the value * * @param mixed $value * @return void */ public function append($value) { } /** * Sort the entries by value * * @return void */ public function asort() { } /** * Get the number of public properties in the ArrayObject * * @return int */ public function count() { } /** * Exchange the array for another one. * * @param array|ArrayObject $data * @return array */ public function exchangeArray($data) { } /** * Creates a copy of the ArrayObject. * * @return array */ public function getArrayCopy() { } /** * Gets the behavior flags. * * @return int */ public function getFlags() { } /** * Create a new iterator from an ArrayObject instance * * @return \Iterator */ public function getIterator() { } /** * Gets the iterator classname for the ArrayObject. * * @return string */ public function getIteratorClass() { } /** * Sort the entries by key * * @return void */ public function ksort() { } /** * Sort an array using a case insensitive "natural order" algorithm * * @return void */ public function natcasesort() { } /** * Sort entries using a "natural order" algorithm * * @return void */ public function natsort() { } /** * Returns whether the requested key exists * * @param mixed $key * @return bool */ public function offsetExists($key) { } /** * Returns the value at the specified key * * @param mixed $key * @return mixed */ public function &offsetGet($key) { } /** * Sets the value at the specified key to value * * @param mixed $key * @param mixed $value * @return void */ public function offsetSet($key, $value) { } /** * Unsets the value at the specified key * * @param mixed $key * @return void */ public function offsetUnset($key) { } /** * Serialize an ArrayObject * * @return string */ public function serialize() { } /** * Sets the behavior flags * * @param int $flags * @return void */ public function setFlags($flags) { } /** * Sets the iterator classname for the ArrayObject * * @param string $class * @return void */ public function setIteratorClass($class) { } /** * Sort the entries with a user-defined comparison function and maintain key association * * @param callable $function * @return void */ public function uasort($function) { } /** * Sort the entries by keys using a user-defined comparison function * * @param callable $function * @return void */ public function uksort($function) { } /** * Unserialize an ArrayObject * * @param string $data * @return void */ public function unserialize($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.0040.01818.56
8.3.50.0140.00521.92
8.3.40.0160.00318.67
8.3.30.0110.00418.92
8.3.20.0070.00020.30
8.3.10.0080.00023.65
8.3.00.0000.00818.84
8.2.180.0160.00618.16
8.2.170.0100.01022.96
8.2.160.0070.00722.31
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.05
8.2.110.0070.00720.35
8.2.100.0040.00817.78
8.2.90.0050.00317.63
8.2.80.0030.00518.73
8.2.70.0000.00817.79
8.2.60.0000.00817.97
8.2.50.0000.00818.10
8.2.40.0000.00719.21
8.2.30.0020.00519.23
8.2.20.0040.00417.64
8.2.10.0000.00717.88
8.2.00.0050.00317.53
8.1.280.0060.00925.92
8.1.270.0060.00318.75
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00023.79
8.1.230.0070.00420.98
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00817.00
8.1.180.0040.00419.04
8.1.170.0060.00318.53
8.1.160.0000.00818.87
8.1.150.0050.00218.74
8.1.140.0000.00717.30
8.1.130.0000.00717.77
8.1.120.0050.00317.38
8.1.110.0040.00417.28
8.1.100.0040.00417.36
8.1.90.0040.00417.36
8.1.80.0040.00717.39
8.1.70.0000.00717.41
8.1.60.0040.00417.36
8.1.50.0050.00317.50
8.1.40.0040.00417.32
8.1.30.0030.00517.63
8.1.20.0000.00817.57
8.1.10.0040.00417.37
8.1.00.0030.00517.22
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0070.00018.50
8.0.270.0000.00717.08
8.0.260.0000.00818.33
8.0.250.0040.00416.91
8.0.240.0000.00616.85
8.0.230.0030.00316.92
8.0.220.0000.00716.73
8.0.210.0000.00716.75
8.0.200.0000.00716.87
8.0.190.0000.00816.86
8.0.180.0030.00616.92
8.0.170.0050.00216.71
8.0.160.0000.00716.89
8.0.150.0030.00516.71
8.0.140.0030.00516.73
8.0.130.0050.00313.28
8.0.120.0020.00716.79
8.0.110.0060.00316.80
8.0.100.0030.00516.78
8.0.90.0050.00316.71
8.0.80.0030.01316.76
8.0.70.0040.00416.77
8.0.60.0000.00816.82
8.0.50.0070.00016.72
8.0.30.0110.01016.86
8.0.20.0070.01917.40
8.0.10.0040.00416.96
8.0.00.0060.01116.70
7.4.330.0000.00615.13
7.4.320.0030.00316.46
7.4.300.0000.00616.50
7.4.290.0050.00216.54
7.4.280.0070.00316.45
7.4.270.0030.00316.35
7.4.260.0070.00416.54
7.4.250.0000.00816.34
7.4.240.0030.00316.45
7.4.230.0030.00316.48
7.4.220.0060.01516.32
7.4.210.0000.01716.39
7.4.200.0040.00416.44
7.4.160.0060.00916.23
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0070.01516.46
7.4.120.0120.00516.46
7.4.110.0120.00616.47
7.4.100.0060.01016.38
7.4.90.0100.00716.48
7.4.80.0070.01019.39
7.4.70.0110.00716.48
7.4.60.0060.01216.46
7.4.50.0040.00416.31
7.4.40.0100.00616.48
7.4.30.0100.00716.50
7.4.10.0060.01214.96
7.4.00.0040.01114.97
7.3.330.0000.00513.05
7.3.320.0020.00213.14
7.3.310.0000.00716.21
7.3.300.0060.00016.16
7.3.290.0100.00616.18
7.3.280.0100.00916.18
7.3.270.0040.01317.40
7.3.260.0130.01016.50
7.3.250.0060.01116.31
7.3.240.0120.00416.32
7.3.230.0070.01016.39
7.3.210.0090.00716.11
7.3.200.0070.01019.39
7.3.190.0060.01116.43
7.3.180.0160.00016.19
7.3.170.0150.00316.27
7.3.160.0130.00316.51
7.3.130.0060.01214.63
7.3.120.0070.01014.72
7.3.110.0070.01214.69
7.3.100.0020.01214.64
7.3.90.0020.01114.67
7.3.80.0020.00814.84
7.3.70.0090.00414.37
7.3.60.0080.00414.56
7.3.50.0070.00714.58
7.3.40.0070.00514.65
7.3.30.0050.00614.66
7.3.20.0050.01016.39
7.3.10.0030.01116.55
7.3.00.0020.00916.41
7.2.330.0120.00916.40
7.2.320.0090.01416.41
7.2.310.0140.00316.57
7.2.300.0100.00716.45
7.2.290.0070.01516.39
7.2.260.0000.01614.49
7.2.250.0080.00914.85
7.2.240.0090.00814.82
7.2.230.0030.01114.70
7.2.220.0090.00615.10
7.2.210.0060.00614.74
7.2.200.0040.00814.83
7.2.190.0020.00914.79
7.2.180.0070.00714.73
7.2.170.0030.00914.90
7.2.160.0090.00014.77
7.2.150.0070.00716.68
7.2.140.0060.00616.83
7.2.130.0030.00616.84
7.2.120.0080.00816.68
7.2.110.0000.01316.80
7.2.100.0070.00716.79
7.2.90.0070.01016.52
7.2.80.0070.00416.79
7.2.70.0050.00516.59
7.2.60.0110.00516.62
7.2.50.0090.00616.65
7.2.40.0000.01616.91
7.2.30.0080.00416.43
7.2.20.0000.01416.73
7.2.10.0030.01016.52
7.2.00.0080.00517.97
7.1.330.0090.00515.59
7.1.320.0050.00715.73
7.1.310.0090.00515.78
7.1.300.0060.00915.58
7.1.290.0050.01015.78
7.1.280.0060.00515.68
7.1.270.0060.00615.56
7.1.260.0020.00815.62
7.1.250.0050.00315.61
7.1.240.0080.00815.72
7.1.230.0090.00315.52
7.1.220.0000.01115.58
7.1.210.0070.00715.55
7.1.200.0050.00515.79
7.1.190.0040.01115.85
7.1.180.0000.01315.66
7.1.170.0060.00915.75
7.1.160.0040.00715.80
7.1.150.0060.00615.64
7.1.140.0060.00615.55
7.1.130.0040.00415.56
7.1.120.0050.00315.32
7.1.110.0080.00615.58
7.1.100.0040.00716.91
7.1.90.0030.00815.84
7.1.80.0030.00915.63
7.1.70.0040.00916.40
7.1.60.0100.00717.53
7.1.50.0030.01616.28
7.1.40.0000.00915.70
7.1.30.0040.01115.34
7.1.20.0030.00615.70
7.1.10.0100.00715.58
7.1.00.0080.03818.97
7.0.330.0000.01315.39
7.0.320.0090.00615.23
7.0.310.0070.00315.25
7.0.300.0090.00315.21
7.0.290.0000.01115.18
7.0.280.0000.01315.30
7.0.270.0030.00915.28
7.0.260.0070.00715.26
7.0.250.0070.00715.28
7.0.240.0040.00715.26
7.0.230.0000.00915.46
7.0.220.0070.00715.52
7.0.210.0000.01415.45
7.0.200.0020.00916.09
7.0.190.0030.01115.31
7.0.180.0030.00615.30
7.0.170.0060.00615.37
7.0.160.0100.01015.28
7.0.150.0130.00315.12
7.0.140.0020.04118.58
7.0.130.0110.00315.25
7.0.120.0060.00715.30
7.0.110.0130.00315.28
7.0.100.0030.00615.48
7.0.90.0000.01315.41
7.0.80.0030.01015.13
7.0.70.0040.00815.16
7.0.60.0050.03317.56
7.0.50.0070.02216.58
7.0.40.0070.03416.81
7.0.30.0150.03016.78
7.0.20.0180.04116.74
7.0.10.0120.03316.82
7.0.00.0050.04816.71
5.6.400.0130.00014.50
5.6.390.0080.00513.82
5.6.380.0040.01213.81
5.6.370.0030.00914.00
5.6.360.0060.00614.39
5.6.350.0050.01014.32
5.6.340.0040.01114.16
5.6.330.0080.00614.00
5.6.320.0080.00813.98
5.6.310.0000.01314.07
5.6.300.0040.00814.07
5.6.290.0060.00614.13
5.6.280.0100.00314.30
5.6.270.0000.01714.32
5.6.260.0040.00414.41
5.6.250.0070.00714.13
5.6.240.0000.01414.12
5.6.230.0000.00914.39
5.6.220.0090.00314.30
5.6.210.0060.02317.39
5.6.200.0060.04116.23
5.6.190.0050.04417.31
5.6.180.0100.02817.22
5.6.170.0200.03617.21
5.6.160.0060.03317.28
5.6.150.0060.04716.11
5.6.140.0070.03416.19
5.6.130.0000.02816.22
5.6.120.0140.02017.67
5.6.110.0080.03717.64
5.6.100.0080.03917.66
5.6.90.0030.02817.61
5.6.80.0050.04517.25
5.6.70.0080.00414.03
5.6.60.0030.01014.29
5.6.50.0070.00714.01
5.6.40.0040.00713.89
5.6.30.0070.01014.13
5.6.20.0060.00613.96
5.6.10.0030.00714.24
5.6.00.0030.01014.09
5.5.380.0120.00614.12
5.5.370.0090.00314.23
5.5.360.0040.00814.01
5.5.350.0130.03417.37
5.5.340.0090.03316.05
5.5.330.0000.02717.29
5.5.320.0170.04317.07
5.5.310.0180.04317.23
5.5.300.0030.04716.10
5.5.290.0070.03815.93
5.5.280.0080.04317.29
5.5.270.0100.02217.52
5.5.260.0000.04517.40
5.5.250.0080.04217.42
5.5.240.0080.03617.20
5.5.230.0140.00013.82
5.5.220.0100.00014.15
5.5.210.0000.01114.12
5.5.200.0060.00613.62
5.5.190.0030.01013.91
5.5.180.0090.00613.78
5.5.170.0030.00714.10
5.5.160.0040.00414.05
5.5.150.0060.00613.87
5.5.140.0000.01214.08
5.5.130.0090.00613.60
5.5.120.0080.00514.00
5.5.110.0030.00913.92
5.5.100.0000.01114.05
5.5.90.0000.01113.93
5.5.80.0130.00014.12
5.5.70.0000.01213.82
5.5.60.0000.01013.58
5.5.50.0040.00914.13
5.5.40.0000.00913.59
5.5.30.0040.00413.74
5.5.20.0000.01014.14
5.5.10.0100.00313.97
5.5.00.0070.00713.56
5.4.450.0190.03414.92
5.4.440.0080.03315.02
5.4.430.0090.02915.20
5.4.420.0120.02815.14
5.4.410.0120.02915.18
5.4.400.0100.02715.03
5.4.390.0140.02814.95
5.4.380.0100.03214.72
5.4.370.0130.02814.79
5.4.360.0070.03414.62
5.4.350.0160.02714.69
5.4.340.0150.02514.66
5.4.330.0030.00610.59
5.4.320.0070.03314.67
5.4.310.0130.03014.54
5.4.300.0170.02714.64
5.4.290.0080.03214.77
5.4.280.0120.02914.82
5.4.270.0080.03014.75
5.4.260.0070.03314.80
5.4.250.0070.03614.77
5.4.240.0150.02714.76
5.4.230.0130.02514.67
5.4.220.0120.02814.58
5.4.210.0150.03014.68
5.4.200.0120.02713.69
5.4.190.0080.03214.78
5.4.180.0150.03014.76
5.4.170.0130.02814.65
5.4.160.0130.02714.82
5.4.150.0100.03214.61
5.4.140.0130.02613.47
5.4.130.0120.02613.63
5.4.120.0090.03113.41
5.4.110.0170.03613.51
5.4.100.0160.02413.56
5.4.90.0140.02513.71
5.4.80.0140.02513.60
5.4.70.0070.03413.67
5.4.60.0130.02613.51
5.4.50.0130.02313.67
5.4.40.0100.03013.50
5.4.30.0100.03013.38
5.4.20.0120.02813.56
5.4.10.0120.02513.65
5.4.00.0100.03113.22
5.3.290.0230.04714.72
5.3.280.0130.05314.82
5.3.270.0170.05314.75
5.3.260.0230.04714.72
5.3.250.0200.04714.65
5.3.240.0130.05714.79
5.3.230.0100.05714.68
5.3.220.0170.05014.70
5.3.210.0130.05714.63
5.3.200.0100.05714.64
5.3.190.0200.04714.63
5.3.180.0030.06714.79
5.3.170.0230.04314.63
5.3.160.0170.05314.64
5.3.150.0230.06714.75
5.3.140.0130.05314.63
5.3.130.0230.04714.62
5.3.120.0170.05314.71
5.3.110.0300.04014.55
5.3.100.0100.06014.06
5.3.90.0200.04714.26
5.3.80.0230.07014.27
5.3.70.0330.03714.25
5.3.60.0200.05014.10
5.3.50.0270.04314.07
5.3.40.0170.05714.04
5.3.30.0300.03713.95
5.3.20.0200.04713.92
5.3.10.0130.05313.80
5.3.00.0300.04013.83
5.2.170.0100.04711.21
5.2.160.0170.05711.16
5.2.150.0200.03711.16
5.2.140.0170.06011.19
5.2.130.0130.06011.23
5.2.120.0230.03011.25
5.2.110.0130.04311.23
5.2.100.0170.04011.18
5.2.90.0170.04011.24
5.2.80.0100.04711.35
5.2.70.0200.03711.13
5.2.60.0200.03711.13
5.2.50.0070.05011.11
5.2.40.0130.03711.08
5.2.30.0070.04711.20
5.2.20.0070.04710.98
5.2.10.0070.04711.09
5.2.00.0070.04710.82
5.1.60.0100.03310.09
5.1.50.0100.03710.07
5.1.40.0130.03310.21
5.1.30.0100.03710.55
5.1.20.0130.03710.56
5.1.10.0230.02710.13
5.1.00.0100.03710.24
5.0.50.0070.0308.68
5.0.40.0070.0308.63
5.0.30.0070.0438.30
5.0.20.0100.0238.25
5.0.10.0070.0278.41
5.0.00.0070.0438.18
4.4.90.0070.0235.91
4.4.80.0070.0205.96
4.4.70.0000.0275.87
4.4.60.0100.0235.91
4.4.50.0130.0236.00
4.4.40.0030.0436.01
4.4.30.0070.0205.91
4.4.20.0070.0235.95
4.4.10.0070.0205.94
4.4.00.0100.0305.97
4.3.110.0000.0275.95
4.3.100.0070.0205.81
4.3.90.0070.0205.83
4.3.80.0170.0235.79
4.3.70.0100.0175.79
4.3.60.0030.0235.81
4.3.50.0030.0205.82
4.3.40.0000.0375.77
4.3.30.0000.0234.64
4.3.20.0000.0234.62
4.3.10.0000.0234.47
4.3.00.0030.0277.61

preferences:
46.14 ms | 401 KiB | 5 Q