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; extract($obj); unset($obj); var_dump(get_defined_vars());

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.40.0200.00018.96
8.3.30.0100.00719.08
8.3.20.0070.00020.21
8.3.10.0040.00421.77
8.3.00.0080.00019.38
8.2.170.0070.00722.96
8.2.160.0030.01020.43
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00022.23
8.2.110.0080.00020.38
8.2.100.0070.00317.91
8.2.90.0080.00019.22
8.2.80.0030.00617.97
8.2.70.0090.00417.25
8.2.60.0060.00318.03
8.2.50.0040.00718.07
8.2.40.0080.00019.63
8.2.30.0040.00417.95
8.2.20.0020.00517.63
8.2.10.0050.00317.94
8.2.00.0000.00817.75
8.1.270.0030.00523.92
8.1.260.0050.00226.35
8.1.250.0050.00228.09
8.1.240.0030.00623.96
8.1.230.0070.00419.15
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0000.00917.25
8.1.190.0050.00317.35
8.1.180.0000.00718.10
8.1.170.0040.00418.66
8.1.160.0070.00022.09
8.1.150.0050.00218.95
8.1.140.0040.00417.53
8.1.130.0060.00317.70
8.1.120.0070.00017.36
8.1.110.0000.00717.40
8.1.100.0030.00517.38
8.1.90.0050.00317.47
8.1.80.0000.00717.49
8.1.70.0020.00517.48
8.1.60.0080.00017.56
8.1.50.0040.00417.48
8.1.40.0030.00517.48
8.1.30.0050.00317.72
8.1.20.0000.00817.51
8.1.10.0000.00817.57
8.1.00.0080.00017.45
8.0.300.0060.00318.77
8.0.290.0050.00216.88
8.0.280.0040.00418.52
8.0.270.0000.00717.33
8.0.260.0000.00617.18
8.0.250.0070.00016.96
8.0.240.0000.00717.03
8.0.230.0000.00717.02
8.0.220.0000.00717.02
8.0.210.0040.00316.83
8.0.200.0030.00316.95
8.0.190.0080.00017.03
8.0.180.0000.00717.02
8.0.170.0040.00416.89
8.0.160.0030.00516.88
8.0.150.0030.00316.95
8.0.140.0050.00316.93
8.0.130.0000.00513.35
8.0.120.0000.00816.90
8.0.110.0070.00016.79
8.0.100.0050.00216.96
8.0.90.0000.00716.92
8.0.80.0070.00716.96
8.0.70.0070.00017.03
8.0.60.0080.00017.00
8.0.50.0000.00716.93
8.0.30.0100.01517.23
8.0.20.0150.00517.40
8.0.10.0000.00817.05
8.0.00.0070.01116.74
7.4.330.0030.00315.00
7.4.320.0000.00716.61
7.4.300.0000.00616.62
7.4.290.0000.00716.37
7.4.280.0000.00716.51
7.4.270.0030.00516.50
7.4.260.0000.00716.64
7.4.250.0030.00616.62
7.4.240.0020.00516.54
7.4.230.0040.00416.62
7.4.220.0120.00616.55
7.4.210.0090.00616.55
7.4.200.0000.00716.57
7.4.160.0150.00716.69
7.4.150.0140.00717.40
7.4.140.0110.00817.86
7.4.130.0140.00816.63
7.4.120.0100.00816.52
7.4.110.0070.01116.54
7.4.100.0110.00716.63
7.4.90.0060.01216.52
7.4.80.0170.00319.39
7.4.70.0170.00316.67
7.4.60.0080.01016.54
7.4.50.0060.00816.56
7.4.40.0130.00516.25
7.4.30.0070.01116.24
7.4.20.0100.00716.51
7.4.10.0050.01516.66
7.4.00.0090.00815.38
7.3.330.0000.00613.24
7.3.320.0000.00613.25
7.3.310.0000.00716.33
7.3.300.0030.00316.42
7.3.290.0040.01116.43
7.3.280.0060.01016.36
7.3.270.0130.00617.40
7.3.260.0100.00716.59
7.3.240.0130.01316.45
7.3.230.0120.00616.39
7.3.210.0090.01016.36
7.3.200.0180.00419.39
7.3.190.0160.00316.48
7.3.180.0180.00316.29
7.3.170.0060.00916.23
7.3.160.0100.01016.42
7.3.150.0030.01316.38
7.3.140.0130.00416.41
7.3.130.0230.00316.38
7.3.120.0120.00715.68
7.3.110.0120.00715.39
7.3.100.0110.00915.45
7.3.90.0140.00215.65
7.3.80.0100.00815.79
7.3.70.0060.01315.44
7.3.60.0090.00515.65
7.3.50.0030.01015.67
7.3.40.0060.00915.62
7.3.30.0060.00815.63
7.3.20.0080.00916.49
7.3.10.0130.00516.56
7.3.00.0110.00716.37
7.2.330.0090.00916.41
7.2.320.0170.00416.69
7.2.310.0170.00716.69
7.2.300.0070.01116.70
7.2.290.0100.00816.75
7.2.280.0120.00616.64
7.2.270.0080.01216.66
7.2.260.0120.00916.67
7.2.250.0120.00915.60
7.2.240.0150.00715.80
7.2.230.0080.01115.84
7.2.220.0090.00615.80
7.2.210.0090.00615.78
7.2.200.0060.01415.75
7.2.190.0100.00615.58
7.2.180.0080.00715.76
7.2.170.0060.01115.69
7.2.160.0140.00516.52
7.2.150.0110.00916.64
7.2.140.0130.01116.64
7.2.130.0170.01316.69
7.2.120.0130.00916.54
7.2.110.0060.01216.53
7.2.100.0140.00916.88
7.2.90.0170.00816.72
7.2.80.0200.00416.74
7.2.70.0130.00816.34
7.2.60.0760.00816.77
7.2.50.0050.01516.60
7.2.40.0110.00816.56
7.2.30.0140.00516.53
7.2.20.0100.00916.36
7.2.10.0060.01116.68
7.2.00.0090.01016.67
7.1.330.0090.00915.52
7.1.320.0070.00615.41
7.1.310.0100.00615.68
7.1.300.0030.01015.52
7.1.290.0050.01115.55
7.1.280.0220.00915.52
7.1.270.0090.00815.46
7.1.260.0060.00815.55
7.1.250.0170.00515.49
7.1.240.0110.00615.39
7.1.230.0180.00315.44
7.1.220.0090.00915.50
7.1.210.0120.00415.36
7.1.200.0030.01315.39
7.1.190.0150.00415.30
7.1.180.0040.01515.45
7.1.170.0070.01115.32
7.1.160.0140.00715.48
7.1.150.0080.01115.55
7.1.140.0080.01115.50
7.1.130.0220.00315.45
7.1.120.0140.00915.48
7.1.110.0110.01415.39
7.1.100.0070.00616.56
7.1.90.0100.01015.36
7.1.80.0050.01515.50
7.1.70.0130.00316.14
7.1.60.0080.01217.45
7.1.50.0090.01316.06
7.1.40.0080.01515.39
7.1.30.0070.01015.60
7.1.20.0200.00715.39
7.1.10.0130.00315.50
7.1.00.0070.04218.92
7.0.330.0000.01715.15
7.0.320.0110.00515.27
7.0.310.0080.01115.19
7.0.300.0120.00415.13
7.0.290.0110.00615.24
7.0.280.0030.01315.28
7.0.270.0180.00715.12
7.0.260.0140.01015.16
7.0.250.0050.01915.52
7.0.240.0100.00715.38
7.0.230.0060.01115.28
7.0.220.0100.01315.14
7.0.210.0110.00715.19
7.0.200.0040.00916.05
7.0.190.0120.00815.20
7.0.180.0070.01015.17
7.0.170.0150.00315.39
7.0.160.0100.00615.17
7.0.150.0110.00515.26
7.0.140.0080.03918.59
7.0.130.0150.01415.05
7.0.120.0130.00415.36
7.0.110.0130.01315.18
7.0.100.0210.00015.34
7.0.90.0110.01115.31
7.0.80.0140.00915.38
7.0.70.0040.01515.13
7.0.60.0070.05017.53
7.0.50.0120.04316.56
7.0.40.0150.02717.79
7.0.30.0210.02717.68
7.0.20.0220.02517.61
7.0.10.0090.04117.70
7.0.00.0140.03917.60
5.6.400.0070.01115.88
5.6.390.0060.01316.25
5.6.380.0190.01016.05
5.6.370.0070.01415.87
5.6.360.0150.00615.98
5.6.350.0060.01515.96
5.6.340.0060.01315.95
5.6.330.0090.01116.21
5.6.320.0140.00916.04
5.6.310.0130.00615.71
5.6.300.0130.00716.05
5.6.290.0090.00915.92
5.6.280.0090.04018.39
5.6.270.0090.00915.68
5.6.260.0110.01415.76
5.6.250.0240.02015.92
5.6.240.0130.01015.68
5.6.230.0120.01215.73
5.6.220.0140.00616.13
5.6.210.0110.03918.31
5.6.200.0030.03517.15
5.6.190.0100.04318.25
5.6.180.0100.03518.19
5.6.170.0150.04018.26
5.6.160.0120.02918.33
5.6.150.0090.04717.09
5.6.140.0130.04516.96
5.6.130.0160.02517.22
5.6.120.0100.04018.39
5.6.110.0090.04618.53
5.6.100.0050.04918.46
5.6.90.0110.02418.48
5.6.80.0170.03318.18
5.6.70.0090.00915.70
5.6.60.0050.01315.84
5.6.50.0160.00315.95
5.6.40.0160.00315.96
5.6.30.0130.00615.61
5.6.20.0070.01116.01
5.6.10.0140.00916.01
5.6.00.0070.01415.83
5.5.380.0140.00515.70
5.5.370.0160.00715.84
5.5.360.0060.01315.93
5.5.350.0130.01818.11
5.5.340.0080.04616.84
5.5.330.0100.03818.10
5.5.320.0220.04218.21
5.5.310.0080.04018.04
5.5.300.0100.04116.86
5.5.290.0090.04516.87
5.5.280.0060.02518.31
5.5.270.0060.04818.22
5.5.260.0070.03518.33
5.5.250.0090.03418.21
5.5.240.0230.03618.02
5.5.230.0100.01015.95
5.5.220.0070.01015.94
5.5.210.0130.00515.92
5.5.200.0090.00915.66
5.5.190.0070.01015.73
5.5.180.0140.00815.79
5.5.170.0090.01315.87
5.5.160.0030.01915.52
5.5.150.0060.01615.70
5.5.140.0110.00815.91
5.5.130.0090.00915.57
5.5.120.0090.01815.58
5.5.110.0050.01415.79
5.5.100.0090.00915.77
5.5.90.0120.00615.62
5.5.80.0090.00915.43
5.5.70.0140.00615.82
5.5.60.0100.00815.68
5.5.50.0090.00915.46
5.5.40.0090.00915.82
5.5.30.0060.01615.64
5.5.20.0120.00615.80
5.5.10.0140.00315.73
5.5.00.0110.01115.74
5.4.450.0450.03416.12
5.4.440.0460.03616.16
5.4.430.0420.03516.09
5.4.420.0370.00416.00
5.4.410.0500.00516.01
5.4.400.0360.00315.97
5.4.390.0380.00315.94
5.4.380.0360.00315.99
5.4.370.0370.00315.85
5.4.360.0460.00315.80
5.4.350.0350.00415.81
5.4.340.0050.02312.29
5.4.330.0130.00312.63
5.4.320.0070.02112.58
5.4.310.0050.02512.66
5.4.300.0090.01912.48
5.4.290.0090.02012.51
5.4.280.0070.02212.46
5.4.270.0080.02312.49
5.4.260.0080.02112.43
5.4.250.0040.02412.57
5.4.240.0050.02312.63
5.4.230.0050.02412.45
5.4.220.0060.02112.50
5.4.210.0070.02412.56
5.4.200.0060.02112.45
5.4.190.0050.02412.45
5.4.180.0090.02012.56
5.4.170.0060.02412.44
5.4.160.0070.02012.44
5.4.150.0080.02112.35
5.4.140.0050.02312.37
5.4.130.0070.01912.39
5.4.120.0040.02412.42
5.4.110.0060.02212.37
5.4.100.0050.02212.25
5.4.90.0060.02412.35
5.4.80.0040.02412.32
5.4.70.0090.02012.34
5.4.60.0050.02312.33
5.4.50.0100.01912.33
5.4.40.0090.01812.25
5.4.30.0050.02412.24
5.4.20.0090.02112.26
5.4.10.0060.02212.31
5.4.00.0080.03012.11
5.3.290.0090.02512.98
5.3.280.0060.02612.85
5.3.270.0120.02112.93
5.3.260.0090.02512.90
5.3.250.0080.02212.94
5.3.240.0070.02412.92
5.3.230.0040.02612.87
5.3.220.0070.02312.85
5.3.210.0040.02612.79
5.3.200.0080.02112.86
5.3.190.0050.02512.92
5.3.180.0100.02112.83
5.3.170.0080.02412.92
5.3.160.0110.02112.86
5.3.150.0070.02312.85
5.3.140.0090.02212.88
5.3.130.0070.02512.89
5.3.120.0140.02012.88
5.3.110.0070.02412.82
5.3.100.0100.01912.61
5.3.90.0090.02012.56
5.3.80.0070.02712.49
5.3.70.0030.02712.57
5.3.60.0060.02312.55
5.3.50.0060.02312.48
5.3.40.0060.02312.50
5.3.30.0100.02012.45
5.3.20.0100.02012.40
5.3.10.0110.02212.31
5.3.00.0130.02112.20
5.2.170.0090.01610.70
5.2.160.0080.01710.65
5.2.150.0040.02110.64
5.2.140.0060.02010.60
5.2.130.0090.02010.60
5.2.120.0110.01910.59
5.2.110.0020.02610.63
5.2.100.0060.02110.66
5.2.90.0040.02210.66
5.2.80.0100.01610.59
5.2.70.0080.01910.54
5.2.60.0040.02110.65
5.2.50.0080.02210.58
5.2.40.0100.01710.49
5.2.30.0130.02010.52
5.2.20.0070.02010.38
5.2.10.0100.01910.38
5.2.00.0080.02410.23
5.1.60.0100.0169.53
5.1.50.0060.0219.57
5.1.40.0090.0189.58
5.1.30.0070.0179.82
5.1.20.0040.0279.77
5.1.10.0060.0239.65
5.1.00.0050.0199.49
5.0.50.0010.0208.43
5.0.40.0060.0158.36
5.0.30.0050.0208.26
5.0.20.0020.0188.24
5.0.10.0080.0148.24
5.0.00.0040.0218.23
4.4.90.0050.0077.49
4.4.80.0020.0117.48
4.4.70.0050.0077.48
4.4.60.0050.0097.48
4.4.50.0010.0107.49
4.4.40.0040.0147.46
4.4.30.0020.0107.48
4.4.20.0020.0107.52
4.4.10.0020.0117.53
4.4.00.0030.0147.48
4.3.110.0020.0107.43
4.3.100.0010.0117.43
4.3.90.0030.0097.42
4.3.80.0020.0157.39
4.3.70.0020.0107.41
4.3.60.0020.0097.42
4.3.50.0010.0117.41
4.3.40.0030.0137.37
4.3.30.0030.0096.75
4.3.20.0010.0116.74
4.3.10.0010.0116.72
4.3.00.0010.0138.76

preferences:
42.77 ms | 400 KiB | 5 Q