3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['cs_map_id' => 84, 'cs_subject_id' => 1], ['cs_map_id' => 85, 'cs_subject_id' => 5], ]; foreach ($array as ['flag' => &$flag]) { $flag = 1; } var_export($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.4.120.0120.00820.57
8.4.110.0070.00518.93
8.4.100.0070.00217.89
8.4.90.0110.00917.59
8.4.80.0040.00417.70
8.4.70.0050.00419.56
8.4.60.0110.01017.81
8.4.50.0120.00920.09
8.4.40.0080.01217.55
8.4.30.0160.00020.42
8.4.20.0100.00721.10
8.4.10.0080.00019.22
8.3.250.0040.00719.00
8.3.240.0140.00516.45
8.3.230.0100.00916.60
8.3.220.0040.00317.18
8.3.210.0100.01016.61
8.3.200.0120.00718.97
8.3.190.0080.00717.20
8.3.180.0140.00418.65
8.3.170.0060.00317.26
8.3.160.0080.00018.60
8.3.150.0150.00317.27
8.3.140.0040.00418.63
8.3.130.0320.00616.58
8.3.120.0230.01116.14
8.3.110.0090.00916.52
8.3.100.0170.00316.13
8.3.90.0180.00416.12
8.3.80.0180.00716.72
8.3.70.0150.00616.30
8.3.60.0170.00616.55
8.3.50.0180.00416.24
8.3.40.0130.00617.46
8.3.30.0140.00416.84
8.3.20.0100.00717.52
8.3.10.0090.00617.29
8.3.00.0080.00417.22
8.2.290.0100.00820.56
8.2.280.0090.00916.50
8.2.270.0130.00718.38
8.2.260.0090.00617.13
8.2.250.0030.00516.84
8.2.240.0110.00716.35
8.2.230.0130.00516.61
8.2.220.0160.00216.35
8.2.210.0140.00416.36
8.2.200.0090.00916.17
8.2.190.0110.00716.18
8.2.180.0140.00316.70
8.2.170.0130.00617.46
8.2.160.0160.00517.67
8.2.150.0190.00017.26
8.2.140.0200.00017.27
8.2.130.0170.00317.67
8.2.120.0130.00417.42
8.2.110.0190.00017.33
8.2.100.0150.00517.55
8.2.90.0170.00017.21
8.2.80.0090.00917.21
8.2.70.0190.00017.27
8.2.60.0130.00419.30
8.2.50.0120.00417.11
8.2.40.0130.00517.20
8.2.30.0130.00317.36
8.2.20.0130.00617.36
8.2.10.0140.00317.54
8.2.00.0130.00417.34
8.1.330.0100.00916.58
8.1.320.0130.00718.05
8.1.310.0040.00416.79
8.1.300.0090.00916.05
8.1.290.0130.00516.05
8.1.280.0130.00416.05
8.1.270.0170.00217.35
8.1.260.0130.00617.14
8.1.250.0160.00317.21
8.1.240.0160.00017.08
8.1.230.0160.00017.39
8.1.220.0110.00617.11
8.1.210.0170.00316.91
8.1.200.0110.00717.00
8.1.190.0100.00617.02
8.1.180.0170.00316.96
8.1.170.0110.00617.22
8.1.160.0170.00017.19
8.1.150.0140.00316.89
8.1.140.0000.01617.20
8.1.130.0100.00716.88
8.1.120.0140.00319.01
8.1.110.0090.00617.16
8.1.100.0130.00317.16
8.1.90.0160.00017.11
8.1.80.0150.00317.11
8.1.70.0130.00217.08
8.1.60.0150.00517.16
8.1.50.0090.00916.97
8.1.40.0180.00317.07
8.1.30.0140.00317.21
8.1.20.0140.00517.21
8.1.10.0150.00517.14
8.1.00.0100.01016.83

preferences:
42.35 ms | 403 KiB | 5 Q