3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [1 => 1, 3 => 3]; // [1 => 1, 2 => 3] will print both keys foreach($arr as $key => &$val) { // without & will print both keys echo "See key {$key}\n"; $arr[0] = 0; // without this line will print both keys unset($arr[0]); }

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.0140.00418.30
8.3.50.0000.01418.34
8.3.40.0130.00318.70
8.3.30.0040.01118.60
8.3.20.0070.00019.47
8.3.10.0080.00023.71
8.3.00.0000.00822.43
8.2.180.0100.00618.55
8.2.170.0130.00719.10
8.2.160.0100.00321.02
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00421.13
8.2.110.0030.00622.31
8.2.100.0070.00417.84
8.2.90.0050.00322.34
8.2.80.0060.00317.97
8.2.70.0060.00318.03
8.2.60.0040.00418.22
8.2.50.0060.00318.10
8.2.40.0000.00821.19
8.2.30.0040.00420.49
8.2.20.0000.00717.97
8.2.10.0030.00518.40
8.2.00.0000.00719.41
8.1.280.0080.00825.92
8.1.270.0040.00422.14
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00022.55
8.1.230.0040.00720.91
8.1.220.0040.00417.74
8.1.210.0040.00419.04
8.1.200.0030.00617.35
8.1.190.0030.00517.00
8.1.180.0040.00418.10
8.1.170.0050.00518.49
8.1.160.0070.00018.92
8.1.150.0040.00418.83
8.1.140.0040.00420.66
8.1.130.0060.00320.80
8.1.120.0030.00317.45
8.1.110.0040.00417.41
8.1.100.0030.00717.45
8.1.90.0030.00317.44
8.1.80.0030.00517.46
8.1.70.0060.00317.36
8.1.60.0000.00817.57
8.1.50.0040.00417.57
8.1.40.0000.00717.40
8.1.30.0000.00817.61
8.1.20.0050.00317.68
8.1.10.0040.00417.46
8.1.00.0030.00617.39
8.0.300.0020.00519.98
8.0.290.0060.00316.63
8.0.280.0070.00018.35
8.0.270.0080.00017.20
8.0.260.0070.00022.05
8.0.250.0070.00417.00
8.0.240.0040.00416.93
8.0.230.0070.00016.93
8.0.220.0040.00416.89
8.0.210.0070.00016.84
8.0.200.0040.00416.93
8.0.190.0040.00416.98
8.0.180.0040.00416.94
8.0.170.0000.00816.90
8.0.160.0040.00416.89
8.0.150.0000.00716.83
8.0.140.0000.00916.84
8.0.130.0000.00613.32
8.0.120.0000.00816.81
8.0.110.0040.00416.70
8.0.100.0000.00816.89
8.0.90.0040.00416.73
8.0.80.0060.01016.90
8.0.70.0000.00716.92
8.0.60.0070.00016.84
8.0.50.0050.00216.83
8.0.30.0130.00617.21
8.0.20.0090.00917.40
8.0.10.0030.00517.00
8.0.00.0090.01516.75
7.4.330.0000.00515.55
7.4.320.0060.00016.60
7.4.300.0030.00316.52
7.4.290.0040.00716.39
7.4.280.0000.00716.58
7.4.270.0000.01116.55
7.4.260.0060.00316.43
7.4.250.0050.00316.50
7.4.240.0070.00016.51
7.4.230.0000.00716.39
7.4.220.0030.00516.61
7.4.210.0040.01016.60
7.4.200.0070.00016.68
7.4.160.0100.00916.40
7.4.140.0100.00917.86
7.4.130.0110.00716.64
7.4.120.0080.01116.57
7.4.110.0030.01316.43
7.4.100.0140.00316.26
7.4.90.0090.00916.46
7.4.80.0070.01019.39
7.4.70.0060.01516.42
7.4.60.0090.01216.57
7.4.50.0110.00716.48
7.4.40.0160.00816.52
7.4.00.0030.01315.10
7.3.330.0000.00513.25
7.3.320.0060.00013.23
7.3.310.0030.00316.35
7.3.300.0050.00216.31
7.3.290.0000.00816.27
7.3.280.0120.00616.28
7.3.260.0160.00316.29
7.3.240.0120.00716.43
7.3.230.0140.00316.33
7.3.210.0180.00016.59
7.3.200.0130.00316.55
7.3.190.0070.01016.57
7.3.180.0130.00316.31
7.3.170.0100.01016.31
7.3.160.0080.00816.41
7.3.00.0610.01314.73
7.2.330.0090.00916.66
7.2.320.0100.00716.70
7.2.310.0080.00816.60
7.2.300.0160.00016.53
7.2.290.0080.00816.65
7.2.130.0710.00314.65
7.2.120.0640.00814.73
7.2.110.0570.00614.58
7.2.100.0540.00614.58
7.2.90.0550.00814.68
7.2.80.0620.00714.66
7.2.70.0500.00815.01
7.2.60.0540.00914.96
7.2.50.0630.00714.98
7.2.40.0500.00715.01
7.2.30.0770.00914.98
7.2.20.0710.00814.93
7.2.10.0830.00914.81
7.2.00.0850.00714.87
7.1.250.1070.00713.73
7.1.240.0640.00813.81
7.1.230.0570.00713.89
7.1.220.0540.00513.81
7.1.210.0550.00713.82
7.1.200.0620.00613.88
7.1.190.0450.00713.88
7.1.180.0630.00913.88
7.1.170.0430.00613.89
7.1.160.1140.00713.84
7.1.150.0850.00613.88
7.1.140.0860.00613.92
7.1.130.0840.00613.92
7.1.120.0860.00513.89
7.1.110.0790.00613.88
7.1.100.0780.00713.86
7.1.90.0700.00713.81
7.1.80.0770.00713.86
7.1.70.0570.00513.89
7.1.60.0530.00925.33
7.1.50.0670.00825.26
7.1.40.0500.00825.18
7.1.30.0750.00825.30
7.1.20.0600.01025.33
7.1.10.0730.00713.83
7.1.00.0550.00613.89
7.0.330.1180.01313.25
5.6.380.0080.00614.23

preferences:
58.4 ms | 401 KiB | 5 Q