3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array_fill_keys(range(100000, 200000), array('key' => 'plid')); $headerKey = 'key'; $plids = array(); foreach ($data as $key => &$row) { if (isset($row[$headerKey])) { $plids[] = $row[$headerKey]; } }

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.0260.02027.58
8.3.50.0240.02027.53
8.3.40.0230.01729.59
8.3.30.0160.01929.67
8.3.20.0110.00731.35
8.3.10.0120.00632.91
8.3.00.0090.00633.15
8.2.180.0210.01427.61
8.2.170.0310.00329.86
8.2.160.0110.02231.42
8.2.150.0110.00729.77
8.2.140.0100.00332.36
8.2.130.0000.01330.05
8.2.120.0090.00632.14
8.2.110.0000.01732.35
8.2.100.0180.00928.86
8.2.90.0030.01630.34
8.2.80.0110.00829.07
8.2.70.0060.01328.61
8.2.60.0090.00928.97
8.2.50.0130.00728.66
8.2.40.0100.01431.87
8.2.30.0060.01230.39
8.2.20.0090.00928.61
8.2.10.0040.01429.00
8.2.00.0090.00929.14
8.1.280.0130.01631.91
8.1.270.0130.01032.67
8.1.260.0190.00935.15
8.1.250.0180.00333.96
8.1.240.0180.01135.00
8.1.230.0250.00731.54
8.1.220.0130.01030.12
8.1.210.0100.01329.67
8.1.200.0080.01529.79
8.1.190.0110.01129.58
8.1.180.0100.01030.07
8.1.170.0070.01430.88
8.1.160.0110.01133.18
8.1.150.0100.01031.45
8.1.140.0090.01232.08
8.1.130.0060.01330.11
8.1.120.0070.01429.96
8.1.110.0060.01529.93
8.1.100.0190.00329.79
8.1.90.0090.01229.82
8.1.80.0100.01029.84
8.1.70.0110.01129.93
8.1.60.0100.01330.05
8.1.50.0130.01030.00
8.1.40.0100.01329.88
8.1.30.0100.01330.08
8.1.20.0030.01930.06
8.1.10.0070.01730.02
8.1.00.0090.01329.85
8.0.300.0140.00729.24
8.0.290.0100.01028.98
8.0.280.0070.01530.82
8.0.270.0030.01629.55
8.0.260.0040.01529.50
8.0.250.0130.00729.25
8.0.240.0070.01329.12
8.0.230.0030.01729.29
8.0.220.0160.00929.23
8.0.210.0090.00929.20
8.0.200.0100.01329.34
8.0.190.0070.01729.34
8.0.180.0100.01429.19
8.0.170.0030.02129.27
8.0.160.0090.01329.30
8.0.150.0200.00329.07
8.0.140.0070.01529.08
8.0.130.0130.00625.78
8.0.120.0060.01629.16
8.0.110.0110.01129.07
8.0.100.0150.00729.13
8.0.90.0120.00929.18
8.0.80.0230.02329.25
8.0.70.0100.01329.15
8.0.60.0110.01129.25
8.0.50.0130.00929.09
8.0.30.0290.01629.42
8.0.20.0320.02429.47
8.0.10.0040.01829.42
8.0.00.0320.03129.04
7.4.330.0030.00930.64
7.4.320.0100.01028.89
7.4.300.0030.01728.80
7.4.290.0040.01828.85
7.4.280.0100.01928.86
7.4.270.0110.01128.82
7.4.260.0120.00928.83
7.4.250.0060.01628.84
7.4.240.0130.01028.81
7.4.230.0090.01228.91
7.4.220.0320.03228.93
7.4.210.0170.02628.84
7.4.200.0130.00728.79
7.4.160.0260.04028.83
7.4.150.0280.04428.80
7.4.140.0300.02928.79
7.4.130.0350.02528.70
7.4.120.0280.02328.80
7.4.110.0340.01928.84
7.4.100.0380.02929.02
7.4.90.0230.02628.94
7.4.80.0230.03328.89
7.4.70.0310.02428.84
7.4.60.0310.02228.75
7.4.50.0240.01328.54
7.4.40.0240.02428.82
7.4.30.0280.02228.98
7.4.00.0120.02527.18
7.3.330.0090.00924.77
7.3.320.0090.00924.75
7.3.310.0120.00927.95
7.3.300.0030.01727.93
7.3.290.0300.02527.94
7.3.280.0270.02527.87
7.3.270.0330.02028.19
7.3.260.0280.02227.96
7.3.250.0330.03027.96
7.3.240.0370.01728.00
7.3.230.0280.01928.15
7.3.210.0280.03228.16
7.3.200.0290.02327.97
7.3.190.0460.02028.07
7.3.180.0240.02428.14
7.3.170.0340.02727.98
7.3.160.0170.03028.26
7.2.330.0380.01527.14
7.2.320.0150.03427.05
7.2.310.0240.02527.06
7.2.300.0270.03427.16
7.2.290.0310.01727.02
7.2.00.0070.01731.68
7.1.200.0260.01627.94
7.1.100.0070.01630.61
7.1.70.0070.01329.57
7.1.60.0100.03329.65
7.1.50.0280.02129.16
7.1.00.0000.09034.92
7.0.200.0000.02829.37
7.0.60.0770.08332.41
7.0.50.0230.08328.58
7.0.40.0130.07730.79
7.0.30.0330.05730.67
7.0.20.0630.09030.73
7.0.10.0230.08030.71
7.0.00.0070.10730.66
5.6.280.0170.13069.31
5.6.210.0300.14768.73
5.6.200.0270.10366.31
5.6.190.0470.13768.55
5.6.180.0600.09768.55
5.6.170.0200.13068.52
5.6.160.0200.12068.45
5.6.150.0370.15366.24
5.6.140.0230.12366.27
5.6.130.0200.15766.34
5.6.120.0430.11769.33
5.6.110.0270.15069.08
5.6.100.0230.17069.20
5.6.90.0370.16069.14
5.6.80.0270.11068.52
5.5.350.0230.13768.59
5.5.340.0300.10766.16
5.5.330.0230.16768.13
5.5.320.0330.10368.38
5.5.310.0200.12068.51
5.5.300.0430.14066.11
5.5.290.0330.12066.05
5.5.280.0270.09369.03
5.5.270.0270.12768.99
5.5.260.0370.13368.98
5.5.250.0200.15368.85
5.5.240.0530.12068.26

preferences:
45.75 ms | 401 KiB | 5 Q