3v4l.org

run code in 300+ PHP versions simultaneously
<?php class obj implements arrayaccess { private $container = array(); public function __construct() { $this->container = array(1, 2, 3); } public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } public function offsetExists($offset) { return isset($this->container[$offset]); } public function offsetUnset($offset) { unset($this->container[$offset]); } public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } } $obj = new obj; list($a, $b, $c) = (object) $obj; var_dump($a, $b, $c);

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.70.0150.00718.31
8.3.60.0150.00318.68
8.3.50.0100.01121.96
8.3.40.0130.00619.01
8.3.30.0070.00719.17
8.3.20.0070.00020.20
8.3.10.0080.00021.70
8.3.00.0080.00019.50
8.2.180.0150.00416.50
8.2.170.0120.00322.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00022.07
8.2.110.0060.00320.22
8.2.100.0070.00418.34
8.2.90.0040.00419.25
8.2.80.0000.00917.97
8.2.70.0110.00317.50
8.2.60.0120.00017.80
8.2.50.0060.00618.07
8.2.40.0030.00620.06
8.2.30.0040.00418.22
8.2.20.0040.00417.67
8.2.10.0040.00418.06
8.2.00.0000.00817.69
8.1.280.0130.00625.92
8.1.270.0000.00923.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.95
8.1.230.0060.00619.21
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0060.00318.61
8.1.160.0000.00722.04
8.1.150.0000.00718.82
8.1.140.0040.00417.35
8.1.130.0030.00619.57
8.1.120.0080.00017.43
8.1.110.0000.00717.46
8.1.100.0080.00017.39
8.1.90.0070.00017.47
8.1.80.0070.00017.41
8.1.70.0000.00717.50
8.1.60.0000.00917.61
8.1.50.0090.00017.43
8.1.40.0000.00817.52
8.1.30.0030.00617.58
8.1.20.0030.00517.68
8.1.10.0000.00817.53
8.1.00.0080.00017.42
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0070.00018.43
8.0.270.0030.00317.39
8.0.260.0030.00317.23
8.0.250.0040.00417.00
8.0.240.0000.00616.84
8.0.230.0030.00317.00
8.0.220.0000.00616.79
8.0.210.0080.00016.80
8.0.200.0040.00416.96
8.0.190.0040.00416.88
8.0.180.0070.00016.94
8.0.170.0080.00016.93
8.0.160.0050.00316.91
8.0.150.0030.00316.85
8.0.140.0040.00416.77
8.0.130.0030.00313.25
8.0.120.0060.00316.77
8.0.110.0000.00716.85
8.0.100.0040.00416.85
8.0.90.0040.00416.83
8.0.80.0060.01016.84
8.0.70.0050.00317.00
8.0.60.0040.00416.80
8.0.50.0030.00616.96
8.0.30.0090.01217.18
8.0.20.0130.00517.40
8.0.10.0040.00416.98
8.0.00.0080.01116.81
7.4.330.0000.00515.00
7.4.320.0000.00716.63
7.4.300.0000.00616.47
7.4.290.0000.00716.66
7.4.280.0000.00916.41
7.4.270.0030.00316.43
7.4.260.0000.00716.50
7.4.250.0040.00416.55
7.4.240.0030.00416.50
7.4.230.0030.00316.64
7.4.220.0190.00616.73
7.4.210.0060.00616.52
7.4.200.0070.00016.63
7.4.160.0080.00816.52
7.4.150.0070.01117.40
7.4.140.0140.00517.86
7.4.130.0060.01216.64
7.4.120.0050.01116.50
7.4.110.0130.00416.66
7.4.100.0180.00816.57
7.4.90.0030.01616.50
7.4.80.0130.01019.39
7.4.70.0060.00916.34
7.4.60.0100.00716.68
7.4.50.0000.00816.64
7.4.40.0040.01216.75
7.4.30.0080.00816.54
7.4.00.0020.01115.02
7.3.330.0030.00313.38
7.3.320.0030.00313.37
7.3.310.0030.00316.26
7.3.300.0040.00416.42
7.3.290.0070.01016.42
7.3.280.0060.01116.36
7.3.270.0140.00417.40
7.3.260.0040.01316.47
7.3.240.0100.01316.54
7.3.230.0030.01316.48
7.3.210.0180.00616.34
7.3.200.0090.01219.39
7.3.190.0060.01116.45
7.3.180.0100.00616.43
7.3.170.0120.00316.51
7.3.160.0100.00616.48
7.3.120.0060.01014.91
7.3.110.0110.00714.89
7.3.100.0060.01314.86
7.3.90.0100.01015.01
7.3.80.0080.00414.51
7.3.70.0080.00414.70
7.3.60.0070.00715.04
7.3.50.0000.01314.94
7.3.40.0110.00014.95
7.3.30.0000.01214.80
7.3.20.0090.00316.71
7.3.10.0080.00816.65
7.3.00.0080.00616.59
7.2.330.0080.01216.57
7.2.320.0150.00316.54
7.2.310.0150.00716.87
7.2.300.0080.00816.81
7.2.290.0070.01016.58
7.2.250.0130.00714.78
7.2.240.0060.01514.85
7.2.230.0070.01315.28
7.2.220.0080.00315.16
7.2.210.0000.00914.99
7.2.200.0040.00415.14
7.2.190.0060.00615.17
7.2.180.0060.00615.22
7.2.170.0070.00315.00
7.2.130.0080.01016.88
7.2.120.0060.00916.82
7.2.110.0040.00916.69
7.2.100.0060.00616.77
7.2.90.0050.00616.88
7.2.80.0020.00816.84
7.2.70.0090.00317.03
7.2.60.0060.00716.88
7.2.50.0010.00816.90
7.2.40.0030.00816.67
7.2.30.0060.01016.92
7.2.20.0050.00816.88
7.2.10.0060.01016.91
7.2.00.0070.00517.70
7.1.330.0090.00315.93
7.1.320.0060.00915.82
7.1.310.0080.00815.77
7.1.300.0030.01015.67
7.1.290.0000.01115.92
7.1.280.0070.00415.78
7.1.270.0060.00315.70
7.1.260.0000.00815.89
7.1.250.0060.00615.42
7.1.200.0000.01415.52
7.1.100.0030.00718.10
7.1.70.0070.00317.15
7.1.60.0070.00719.32
7.1.50.0090.00616.96
7.1.00.0000.07322.44
7.0.200.0050.00216.70
7.0.140.0030.07721.90
7.0.60.0070.07020.05
7.0.50.0100.07717.85
7.0.40.0000.06320.02
7.0.30.0300.07320.30
7.0.20.0300.05720.12
7.0.10.0400.07320.12
7.0.00.0070.07720.23
5.6.280.0100.06720.94
5.6.210.0070.08320.77
5.6.200.0070.06318.13
5.6.190.0070.08020.61
5.6.180.3200.03720.47
5.6.170.0400.06320.71
5.6.160.0030.04320.34
5.6.150.0000.08718.18
5.6.140.0000.08718.18
5.6.130.0070.05718.18
5.6.120.0030.07021.00
5.6.110.0030.07721.10
5.6.100.0070.08320.99
5.6.90.0030.07321.09
5.6.80.0030.08720.54
5.6.70.0230.05720.39
5.5.350.0270.06720.45
5.5.340.0030.06017.98
5.5.330.0100.04020.27
5.5.320.0170.04320.34
5.5.310.0300.08020.35
5.5.300.0070.03718.01
5.5.290.0070.03717.95
5.5.280.0170.07720.89
5.5.270.0130.07720.88
5.5.260.0100.07320.74
5.5.250.0070.07020.50
5.5.240.0070.07320.19
5.4.450.0900.03719.39
5.4.440.0600.05719.66
5.4.430.0600.06019.21
5.4.420.0670.00019.38
5.4.410.0600.00019.32
5.4.400.0630.00019.23
5.4.390.0600.00019.09
5.4.380.0630.00019.07
5.4.370.0630.00019.11
5.4.360.0600.00019.11
5.4.350.0700.00019.27
5.4.340.0080.03112.02
5.4.320.0090.03112.51
5.4.310.0040.03912.50
5.4.300.0060.04212.51
5.4.290.0070.03712.50
5.4.280.0030.03712.40
5.4.270.0060.03512.40
5.4.260.0050.03712.41
5.4.250.0030.04712.41
5.4.240.0030.03812.40
5.4.230.0030.04112.40
5.4.220.0060.03512.39
5.4.210.0040.03612.39
5.4.200.0080.03812.40
5.4.190.0060.03612.39
5.4.180.0080.03512.39
5.4.170.0070.03512.40
5.4.160.0090.03412.40
5.4.150.0060.04212.39
5.4.140.0060.04212.07
5.4.130.0070.03812.06
5.4.120.0040.03712.03
5.4.110.0050.03612.02
5.4.100.0040.03612.02
5.4.90.0040.04412.02
5.4.80.0090.03312.02
5.4.70.0060.03412.02
5.4.60.0040.04212.02
5.4.50.0040.03612.02
5.4.40.0070.03312.00
5.4.30.0090.03112.00
5.4.20.0030.03712.00
5.4.10.0070.03812.00
5.4.00.0060.04211.49
5.3.290.0080.03812.80
5.3.280.0080.03512.71
5.3.270.0090.04012.72
5.3.260.0050.03912.72
5.3.250.0050.04112.72
5.3.240.0120.03012.72
5.3.230.0050.03812.70
5.3.220.0070.04312.68
5.3.210.0080.03712.68
5.3.200.0070.03512.68
5.3.190.0040.03912.68
5.3.180.0050.03612.67
5.3.170.0040.03712.67
5.3.160.0060.03512.68
5.3.150.0050.03712.67
5.3.140.0040.03712.66
5.3.130.0050.03912.66
5.3.120.0030.04212.66
5.3.110.0070.03812.66
5.3.100.0060.03612.13
5.3.90.0050.03712.11
5.3.80.0070.03512.10
5.3.70.0060.04112.10
5.3.60.0080.03312.09
5.3.50.0030.03912.03
5.3.40.0090.03412.03
5.3.30.0050.03611.99
5.3.20.0030.03711.77
5.3.10.0060.03411.74
5.3.00.0070.03611.73
5.2.170.0060.0299.23
5.2.160.0060.0299.23
5.2.150.0020.0339.23
5.2.140.0030.0339.22
5.2.130.0070.0269.18
5.2.120.0050.0289.18
5.2.110.0040.0309.19
5.2.100.0090.0249.19
5.2.90.0030.0309.19
5.2.80.0060.0299.18
5.2.70.0050.0299.18
5.2.60.0030.0319.13
5.2.50.0030.0319.10
5.2.40.0060.0269.08
5.2.30.0050.0289.06
5.2.20.0050.0289.04
5.2.10.0040.0278.96
5.2.00.0040.0298.81
5.1.60.0030.0258.10
5.1.50.0030.0258.09
5.1.40.0050.0328.08
5.1.30.0060.0248.43
5.1.20.0020.0298.45
5.1.10.0060.0288.17
5.1.00.0060.0228.17
5.0.50.0040.0196.65
5.0.40.0060.0216.52
5.0.30.0050.0306.33
5.0.20.0020.0206.29
5.0.10.0050.0176.27
5.0.00.0040.0296.27
4.4.90.0010.0164.78
4.4.80.0040.0194.76
4.4.70.0040.0144.75
4.4.60.0030.0144.75
4.4.50.0050.0194.77
4.4.40.0030.0294.70
4.4.30.0030.0154.75
4.4.20.0020.0164.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0030.0204.67
4.3.100.0020.0154.67
4.3.90.0010.0154.63
4.3.80.0030.0234.59
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0020.0254.54
4.3.30.0050.0133.30
4.3.20.0040.0133.28
4.3.10.0020.0153.24
4.3.00.0300.01714.27

preferences:
47.79 ms | 401 KiB | 5 Q