3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('foo' => 42, 'bar' => null); $obj = new ArrayObject($arr); foreach (array($arr, $obj) as $ao) { var_dump($ao); foreach (array('foo', 'bar', 'qux') as $key) { echo "- '$key'\n"; echo 'isset: '; var_dump(isset($ao[$key])); echo 'array_key_exists: '; var_dump(array_key_exists($key, (array)$ao)); unset($ao[$key]); } var_dump($ao); echo "\n"; }

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.1.20.0090.00617.66
8.1.10.0080.00617.54
8.1.00.0110.00217.45
8.0.150.0040.00316.89
8.0.140.0080.00416.84
8.0.130.0130.00215.12
8.0.120.0110.00416.89
8.0.110.0130.00216.88
8.0.100.0090.00716.87
8.0.90.0080.00716.86
8.0.80.0090.00916.94
8.0.70.0130.00216.81
8.0.60.0100.00516.88
8.0.50.0100.00416.93
8.0.30.0170.00816.87
8.0.20.0130.01016.97
8.0.10.0120.01117.01
8.0.00.0110.01017.02
7.4.270.0140.00116.43
7.4.260.0080.00614.93
7.4.250.0110.00316.47
7.4.240.0080.00316.61
7.4.230.0080.00516.56
7.4.220.0030.00716.46
7.4.210.0100.00816.44
7.4.200.0090.00516.56
7.4.190.0210.00016.56
7.4.180.0090.00316.55
7.4.160.0110.00916.57
7.4.150.0140.00816.44
7.4.140.0080.01316.41
7.4.130.0080.01016.39
7.4.120.0110.00816.46
7.4.110.0140.00516.46
7.4.100.0100.01116.54
7.4.90.0120.00916.46
7.4.80.0130.00816.42
7.4.70.0100.01116.43
7.4.60.0150.00716.48
7.4.50.0130.00916.37
7.4.40.0150.00716.33
7.4.30.0170.00616.43
7.4.20.0100.00916.38
7.4.10.0110.01016.44
7.4.00.0130.00816.44
7.3.330.0120.00216.35
7.3.320.0120.00214.76
7.3.310.0100.00516.36
7.3.300.0090.00416.35
7.3.290.0110.00816.41
7.3.280.0130.01016.47
7.3.270.0160.00716.30
7.3.260.0120.00816.36
7.3.250.0120.00816.37
7.3.240.0130.00816.41
7.3.230.0140.00816.33
7.3.220.0180.00816.25
7.3.210.0150.00716.27
7.3.200.0160.00616.23
7.3.190.0130.00916.23
7.3.180.0130.00916.25
7.3.170.0130.00916.23
7.3.160.0140.00716.18
7.3.150.0160.00916.24
7.3.140.0170.00616.24
7.3.130.0140.00816.25
7.3.120.0130.00716.27
7.3.110.0170.00716.23
7.3.100.0150.00816.25
7.3.90.0150.00616.57
7.3.80.0140.00716.34
7.3.70.0140.00916.35
7.3.60.0110.01116.32
7.3.50.0120.00916.31
7.3.40.0140.00816.34
7.3.30.0140.00716.31
7.3.20.0120.01016.84
7.3.10.0160.00716.73
7.3.00.0150.01116.78

preferences:
50.36 ms | 455 KiB | 5 Q