3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'id' => 1, 'field' => 2, ]; var_dump(array_diff_key($arr,['id']));

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.0070.01416.50
8.3.50.0110.00316.11
8.3.40.0110.00718.76
8.3.30.0000.01718.54
8.3.20.0070.00020.35
8.3.10.0050.00321.85
8.3.00.0050.00317.59
8.2.180.0000.01416.38
8.2.170.0170.00322.96
8.2.160.0090.00420.28
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00420.52
8.2.120.0000.00726.35
8.2.110.0090.00021.11
8.2.100.0070.00417.91
8.2.90.0000.00919.22
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0030.00618.10
8.2.40.0050.00220.46
8.2.30.0000.00720.86
8.2.20.0000.00718.05
8.2.10.0060.00318.05
8.2.00.0000.00717.92
8.1.280.0140.00725.92
8.1.270.0080.00023.88
8.1.260.0040.00426.35
8.1.250.0040.01128.09
8.1.240.0060.00321.28
8.1.230.0040.00817.42
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0060.00318.53
8.1.160.0070.00018.97
8.1.150.0040.00420.66
8.1.140.0060.00519.46
8.1.130.0000.00718.73
8.1.120.0040.00417.39
8.1.110.0000.00717.27
8.1.100.0000.00717.43
8.1.90.0040.00417.29
8.1.80.0000.00717.31
8.1.70.0050.00317.45
8.1.60.0000.00817.52
8.1.50.0030.00517.45
8.1.40.0040.00417.45
8.1.30.0070.00417.58
8.1.20.0040.00417.57
8.1.10.0050.00317.50
8.1.00.0000.00717.27
8.0.300.0050.00318.77
8.0.290.0030.00516.58
8.0.280.0000.00718.38
8.0.270.0030.00317.11
8.0.260.0030.00316.81
8.0.250.0000.00616.84
8.0.240.0050.00316.89
8.0.230.0050.00316.82
8.0.220.0040.00416.92
8.0.210.0070.00016.78
8.0.200.0000.00616.89
8.0.190.0040.00416.88
8.0.180.0050.00316.81
8.0.170.0040.00416.82
8.0.160.0000.00716.82
8.0.150.0040.00416.66
8.0.140.0070.00016.83
8.0.130.0000.00513.24
8.0.120.0000.00716.69
8.0.110.0040.00416.72
8.0.100.0050.00216.69
8.0.90.0000.00716.82
8.0.80.0150.00616.82
8.0.70.0040.00416.71
8.0.60.0050.00216.80
8.0.50.0070.00016.72
8.0.30.0100.00716.84
8.0.20.0120.00917.40
8.0.10.0080.00016.83
8.0.00.0090.00816.51
7.4.330.0000.00515.55
7.4.320.0000.00616.35
7.4.300.0000.00616.52
7.4.290.0030.00316.38
7.4.280.0040.00416.43
7.4.270.0070.00016.45
7.4.260.0050.00013.19
7.4.250.0050.00316.51
7.4.240.0000.00816.55
7.4.230.0030.00316.28
7.4.220.0100.01016.54
7.4.210.0080.00816.44
7.4.200.0070.00016.32
7.4.160.0100.00916.57
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0050.01316.51
7.4.120.0060.01116.44
7.3.330.0060.00013.08
7.3.320.0000.00513.03
7.3.310.0000.00716.16
7.3.300.0070.00016.16
7.3.290.0030.00316.18
7.3.280.0090.00816.13
7.3.270.0060.01017.40
7.3.260.0110.00616.25
7.3.250.0100.01016.27
7.3.240.0080.01016.25

preferences:
44.19 ms | 401 KiB | 5 Q