3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'a' => ['a' => 'asd'], 'b' => ['b' => 'bsd'], 'c' => ['c' => 'csd'], ]; foreach ($array as &$item) { unset($item['a']); } var_dump($array);

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.01118.68
8.3.50.0170.00318.23
8.3.40.0030.01218.55
8.3.30.0110.00418.54
8.3.20.0060.00321.89
8.3.10.0040.00421.85
8.3.00.0050.00323.65
8.2.180.0110.01118.16
8.2.170.0100.00322.96
8.2.160.0090.00922.96
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00621.04
8.2.120.0040.00426.35
8.2.110.0000.00820.35
8.2.100.0090.00317.91
8.2.90.0030.00517.91
8.2.80.0030.00618.16
8.2.70.0040.00417.93
8.2.60.0040.00418.05
8.2.50.0070.00018.10
8.2.40.0040.00419.40
8.2.30.0040.00419.21
8.2.20.0000.00818.07
8.2.10.0000.00818.16
8.2.00.0040.00418.03
8.1.280.0110.01125.92
8.1.270.0040.00423.67
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0050.00522.08
8.1.230.0040.00721.04
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0090.00017.36
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0050.00318.67
8.1.160.0000.00718.81
8.1.150.0080.00019.02
8.1.140.0000.00717.71
8.1.130.0000.00819.00
8.1.120.0030.00317.36
8.1.110.0000.00717.36
8.1.100.0030.00517.47
8.1.90.0080.00017.49
8.1.80.0030.00517.45
8.1.70.0070.00017.50
8.1.60.0000.00817.59
8.1.50.0040.00417.41
8.1.40.0080.00017.44
8.1.30.0080.00017.55
8.1.20.0060.00317.64
8.1.10.0090.00017.36
8.1.00.0000.01017.34
8.0.300.0060.00319.89
8.0.290.0050.00216.75
8.0.280.0030.00318.36
8.0.270.0040.00417.26
8.0.260.0030.00317.20
8.0.250.0040.00416.86
8.0.240.0030.00316.85
8.0.230.0050.00616.99
8.0.220.0000.00816.90
8.0.210.0000.00716.78
8.0.200.0000.00716.99
8.0.190.0040.00416.87
8.0.180.0030.00616.94
8.0.170.0000.00816.80
8.0.160.0020.00516.87
8.0.150.0000.00716.78
8.0.140.0000.00816.87
8.0.130.0030.00313.40
8.0.120.0030.00516.88
8.0.110.0030.00716.87
8.0.100.0040.00416.95
8.0.90.0000.00716.82
8.0.80.0070.00716.93
8.0.70.0040.00416.68
8.0.60.0040.00416.85
8.0.50.0050.00216.96
8.0.30.0080.01117.02
8.0.20.0120.00717.40
8.0.10.0070.00016.90
8.0.00.0070.01116.85
7.4.330.0000.00415.55
7.4.320.0040.00416.61
7.4.300.0020.00516.55
7.4.290.0050.00216.47
7.4.280.0000.00716.64
7.4.270.0040.00416.44
7.4.260.0030.00716.48
7.4.250.0050.00316.47
7.4.240.0070.00016.52
7.4.230.0000.00716.36
7.4.220.0030.00516.48
7.4.210.0090.00716.58
7.4.200.0030.00316.63
7.4.160.0120.00716.46
7.4.140.0120.00617.86
7.4.130.0150.00516.57
7.4.120.0120.00716.56
7.4.110.0110.01316.49
7.4.100.0100.00616.48
7.4.90.0060.01316.40
7.4.80.0090.01519.39
7.4.70.0060.00916.43
7.4.60.0100.00616.67
7.4.50.0110.00716.48
7.4.40.0120.00816.29
7.4.00.0040.00815.11
7.3.330.0020.00313.18
7.3.320.0030.00313.02
7.3.310.0000.00816.26
7.3.300.0040.00416.16
7.3.290.0000.00716.22
7.3.280.0120.00816.21
7.3.260.0090.00816.62
7.3.240.0100.00616.50
7.3.230.0100.00716.20
7.3.210.0150.00616.59
7.3.200.0100.01016.16
7.3.190.0100.00616.29
7.3.180.0060.01216.64
7.3.170.0090.00916.31
7.3.160.0080.00816.24
7.2.330.0130.00816.64
7.2.320.0040.01516.60
7.2.310.0120.00616.78
7.2.300.0060.01216.65
7.2.290.0110.01016.49
7.2.60.0130.00716.84
7.2.40.0450.01417.89
7.2.30.0540.01118.04
7.2.20.0800.01117.91
7.2.10.0750.01217.82
7.2.00.0480.01117.84
7.1.200.0090.00615.48
7.1.160.0510.00816.67
7.1.150.0520.01216.60
7.1.140.0550.01116.51
7.1.130.0450.01216.63
7.1.120.0490.01216.82
7.1.110.0560.01115.95
7.1.100.0460.01016.34
7.1.90.0630.00816.08
7.1.80.0510.01316.39
7.1.70.0660.00815.16
7.1.60.0670.01232.92
7.1.50.0690.00732.86
7.1.40.0810.01332.69
7.1.30.0630.01332.70
7.1.20.0560.01532.74
7.1.10.0610.00814.60
7.1.00.0700.00914.57

preferences:
63.72 ms | 400 KiB | 5 Q