3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://stackoverflow.com/a/79816463/367456 $myArray = new class ([]) extends ArrayObject { /* implement from ArrayAccess to explore further */ }; // ArrayAccess allows to treat an object as an array var_dump(isset($myArray['key'])); // bool(false) -- offsetExists() $myArray['key'] = 'value'; // -- offsetSet() var_dump($myArray['key']); // string(5) "value" -- offsetGet() var_dump(isset($myArray['key'])); // bool(true) -- offsetExists() unset($myArray['key']); // -- offsetUnset() var_dump(isset($myArray['key'])); // bool(false) -- offsetExists()

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.5.30.0060.01017.92
8.5.20.0110.00820.09
8.5.10.0130.00716.73
8.5.00.0090.01222.94
8.4.180.0120.01019.70
8.4.170.0130.00820.69
8.4.160.0100.01223.18
8.4.150.0060.00616.90
8.4.140.0450.00717.45
8.4.130.0380.01017.38
8.4.120.0410.00917.43
8.4.110.0390.00917.36
8.4.100.0470.00717.27
8.4.90.0450.00817.43
8.4.80.0530.00717.41
8.4.70.0420.00917.50
8.4.60.0440.00917.70
8.4.50.0420.01017.85
8.4.40.0430.00917.52
8.4.30.0360.01317.49
8.4.20.0400.00917.34
8.4.10.0400.00917.63
8.3.300.0150.00718.34
8.3.290.0080.01220.76
8.3.280.0080.00516.23
8.3.270.0370.00616.76
8.3.260.0330.01016.47
8.3.250.0350.00916.67
8.3.240.0330.00916.42
8.3.230.0350.01216.64
8.3.220.0400.00816.25
8.3.210.0400.00616.66
8.3.200.0330.01116.43
8.3.190.0360.00716.67
8.3.180.0360.00916.43
8.3.170.0370.01016.41
8.3.160.0390.00716.28
8.3.150.0410.00816.32
8.3.140.0340.01016.47
8.3.130.0340.01216.31
8.3.120.0320.01116.76
8.3.110.0290.01016.25
8.3.100.0390.00916.36
8.3.90.0400.00716.43
8.3.80.0410.00516.67
8.3.70.0400.00616.24
8.3.60.0370.00816.41
8.3.50.0370.01016.61
8.3.40.0340.01017.50
8.3.30.0380.00617.21
8.3.20.0310.00717.11
8.3.10.0280.00917.43
8.3.00.0310.00717.38
8.2.300.0120.00722.08
8.2.290.0280.00916.55
8.2.280.0310.00916.49
8.2.270.0300.00916.44
8.2.260.0350.00516.10
8.2.250.0290.01016.55
8.2.240.0350.01016.46
8.2.230.0350.00716.63
8.2.220.0260.00616.44
8.2.210.0340.00616.43
8.2.200.0300.00716.31
8.2.190.0290.01016.39
8.2.180.0310.00716.70
8.2.170.0310.01017.41
8.2.160.0350.00717.39
8.2.150.0400.00517.39
8.2.140.0330.00717.01
8.2.130.0320.00717.25
8.2.120.0340.00717.56
8.2.110.0340.00717.33
8.2.100.0300.00817.50
8.2.90.0290.00917.29
8.2.80.0310.00817.35
8.2.70.0290.01317.30
8.2.60.0300.00817.36
8.2.50.0290.00817.63
8.2.40.0320.00617.55
8.2.30.0290.00917.34
8.2.20.0290.01117.18
8.2.10.0300.00817.43
8.2.00.0410.00617.35
8.1.340.0110.01217.63

preferences:
55.75 ms | 837 KiB | 5 Q