3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array_fill_keys(range(100000, 200000), array_fill_keys(range('a', 'z'), 'plid')); $headerKey = 'y'; $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.40.0270.03029.75
8.3.30.0200.01329.73
8.3.20.0100.01031.16
8.3.10.0070.01133.07
8.3.00.0000.01333.52
8.2.170.0190.01629.70
8.2.160.0220.01031.39
8.2.150.0180.00029.88
8.2.140.0090.00432.12
8.2.130.0060.00629.79
8.2.120.0120.00431.85
8.2.110.0190.00630.13
8.2.100.0220.00928.79
8.2.90.0070.01130.39
8.2.80.0100.01028.53
8.2.70.0090.00928.53
8.2.60.0090.00928.94
8.2.50.0080.01128.50
8.2.40.0150.00431.87
8.2.30.0030.01430.35
8.2.20.0110.00728.57
8.2.10.0030.01429.01
8.2.00.0120.00628.94
8.1.270.0090.01333.18
8.1.260.0170.01435.19
8.1.250.0190.00332.59
8.1.240.0160.01334.62
8.1.230.0290.01331.52
8.1.220.0030.01730.09
8.1.210.0100.01329.79
8.1.200.0140.00729.79
8.1.190.0030.02029.78
8.1.180.0100.01029.96
8.1.170.0100.01031.00
8.1.160.0070.01333.30
8.1.150.0070.01431.30
8.1.140.0170.00332.07
8.1.130.0110.01130.13
8.1.120.0100.01029.95
8.1.110.0060.01329.95
8.1.100.0030.01629.81
8.1.90.0100.01029.82
8.1.80.0090.01229.93
8.1.70.0100.01029.90
8.1.60.0070.01529.98
8.1.50.0030.02029.93
8.1.40.0070.01429.94
8.1.30.0130.00930.11
8.1.20.0140.00730.05
8.1.10.0070.01430.03
8.1.00.0150.00629.90
8.0.300.0190.00030.90
8.0.290.0130.00928.86
8.0.280.0100.01030.81
8.0.270.0130.00629.50
8.0.260.0080.01229.54
8.0.250.0100.01029.29
8.0.240.0130.00729.23
8.0.230.0030.01629.11
8.0.220.0070.01329.27
8.0.210.0030.01529.13
8.0.200.0040.01529.33
8.0.190.0120.01229.27
8.0.180.0110.01129.14
8.0.170.0120.00929.22
8.0.160.0040.01829.29
8.0.150.0070.01429.15
8.0.140.0130.00929.12
8.0.130.0030.01625.81
8.0.120.0110.01129.11
8.0.110.0070.01429.20
8.0.100.0140.00729.07
8.0.90.0100.01329.24
8.0.80.0290.01629.24
8.0.70.0090.01229.02
8.0.60.0120.00929.30
8.0.50.0130.00729.25
8.0.30.0210.02029.44
8.0.20.0310.02929.36
8.0.10.0070.01429.34
8.0.00.0270.03728.94
7.4.330.0000.01230.73
7.4.320.0030.01428.93
7.4.300.0070.01328.69
7.4.290.0070.01328.83
7.4.280.0180.00928.77
7.4.270.0100.01328.77
7.4.260.0070.01428.76
7.4.250.0100.01328.85
7.4.240.0140.00728.69
7.4.230.0140.00728.63
7.4.220.0310.03128.87
7.4.210.0260.03028.87
7.4.200.0090.00928.70
7.4.160.0260.03328.77
7.4.150.0320.03628.80
7.4.140.0250.02628.79
7.4.130.0380.01728.84
7.4.120.0250.02528.89
7.4.110.0400.01828.74
7.4.100.0290.02528.91
7.4.90.0330.01728.83
7.4.80.0380.01228.66
7.4.70.0270.02328.64
7.4.60.0270.02628.83
7.4.50.0100.02128.83
7.4.40.0360.01328.87
7.4.30.0320.01628.77
7.4.00.0200.01327.06
7.3.330.0090.00924.61
7.3.320.0090.00924.44
7.3.310.0090.00927.74
7.3.300.0070.01327.73
7.3.290.0280.02527.69
7.3.280.0280.02227.64
7.3.270.0340.01627.88
7.3.260.0190.02927.70
7.3.250.0330.02527.87
7.3.240.0210.03227.74
7.3.230.0170.03027.75
7.3.210.0260.03327.79
7.3.200.0130.03627.87
7.3.190.0360.02327.80
7.3.180.0300.01728.07
7.3.170.0290.02927.75
7.3.160.0200.02727.87
7.2.330.0450.01627.04
7.2.320.0420.01127.14
7.2.310.0130.03527.10
7.2.300.0310.02827.23
7.2.290.0330.01527.04
7.2.60.0100.01729.18
7.2.00.0000.02531.94
7.1.200.0100.02327.86
7.1.100.0000.02830.45
7.1.70.0460.02829.59
7.1.60.0170.02829.52
7.1.50.0060.01629.46
7.1.00.0070.09034.75
7.0.200.0100.01729.05
7.0.60.0700.08332.53
7.0.50.0170.09328.63
7.0.40.0170.09030.48
7.0.30.0600.09030.59
7.0.20.0700.06730.57
7.0.10.0130.05030.54
7.0.00.0130.06030.70
5.6.280.0200.11785.13
5.6.210.0230.14384.56
5.6.200.0300.09082.23
5.6.190.0230.15384.26
5.6.180.0600.13384.38
5.6.170.0330.10084.36
5.6.160.0400.12384.93
5.6.150.0270.12082.13
5.6.140.0270.10782.19
5.6.130.0200.11782.21
5.6.120.0200.11785.51
5.6.110.0300.16085.57
5.6.100.0330.12385.09
5.6.90.0270.13785.15
5.6.80.0270.11384.60
5.5.350.0400.07784.51
5.5.340.0330.15382.00
5.5.330.0300.09384.34
5.5.320.0470.08384.26
5.5.310.0370.15384.25
5.5.300.0270.10081.83
5.5.290.0330.12382.06
5.5.280.0230.08784.99
5.5.270.0330.09384.82
5.5.260.0300.14084.78
5.5.250.0200.17084.88
5.5.240.0300.13084.36

preferences:
49.84 ms | 400 KiB | 5 Q