3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'checklist1' => 'major', 'result_audit1' => 1, 'checklist2' => 'minor', 'result_audit2' => 2, 'checklist3' => 'pico', 'result_audit3' => 3, 'checklist4' => 'goodpoints', 'result_audit4' => 4, 'submit' => 'Submit Now' ]; $result = []; foreach ($array as $k => $v) { if (sscanf($k, 'checklist%d', $integer)) { // isolate integer only on "checklist" keyed elements $result['checklist'][] = [ 'selected' => $v, 'result_audit' => $array["result_audit$integer"], 'origin' => $k ]; } } var_export($result);

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.5.10.0100.01116.46
8.5.00.0100.01019.95
8.4.150.0020.00114.05
8.4.140.0150.00917.65
8.4.130.0100.00718.97
8.4.120.0140.00724.14
8.4.110.0130.00518.04
8.4.100.0130.00617.46
8.4.90.0150.00618.77
8.4.80.0120.00819.62
8.4.70.0120.00917.93
8.4.60.0080.00418.86
8.4.50.0060.01019.46
8.4.40.0130.00717.58
8.4.30.0070.01120.50
8.4.20.0070.01317.73
8.4.10.0090.00019.35
8.3.280.0110.00820.11
8.3.270.0100.00916.54
8.3.260.0090.01016.48
8.3.250.0130.00618.73
8.3.240.0140.00517.10
8.3.230.0090.00816.81
8.3.220.0100.00517.24
8.3.210.0060.00116.91
8.3.200.0030.00516.89
8.3.190.0040.00617.21
8.3.180.0120.00716.62
8.3.170.0070.01117.18
8.3.160.0110.00718.54
8.3.150.0110.01120.73
8.3.140.0030.00616.69
8.3.130.0120.00318.39
8.3.120.0030.00618.96
8.3.110.0030.01720.94
8.3.100.0060.01324.06
8.3.90.0070.00726.77
8.3.80.0090.00318.43
8.3.70.0100.00716.60
8.3.60.0150.00418.16
8.3.50.0160.00318.49
8.3.40.0100.01021.71
8.3.30.0110.00719.19
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0050.00326.16
8.2.290.0100.00820.38
8.2.280.0040.00518.41
8.2.270.0070.01017.57
8.2.260.0140.00418.66
8.2.250.0090.00018.38
8.2.240.0060.00318.93
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0080.00316.75
8.2.190.0100.00716.58
8.2.180.0120.00616.63
8.2.170.0100.00319.02
8.2.160.0080.00522.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.06
8.2.110.0100.00019.27
8.2.100.0220.01017.57
8.2.90.0280.00417.63
8.2.80.0270.00317.57
8.2.70.0260.00817.57
8.2.60.0260.00317.57
8.2.50.0300.00017.60
8.2.40.0210.00617.63
8.2.30.0260.00317.75
8.2.20.0250.00417.57
8.2.10.0280.00317.57
8.2.00.0230.00317.57
8.1.330.0050.00322.07
8.1.320.0120.00818.08
8.1.310.0110.00316.90
8.1.300.0100.01016.45
8.1.290.0080.00330.84
8.1.280.0100.01025.92
8.1.270.0000.00823.90
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00319.51
8.1.230.0110.00819.09
8.1.220.0220.00617.57
8.1.210.0320.00017.57
8.1.200.0250.00317.57
8.1.190.0170.01417.57
8.1.180.0300.00017.57
8.1.170.0240.00317.57
8.1.160.0230.00717.57
8.1.150.0300.00017.57
8.1.140.0220.00417.57
8.1.130.0280.00317.57
8.1.120.0290.00317.57
8.1.110.0290.00617.57
8.1.100.0210.00817.57
8.1.90.0320.00017.57
8.1.80.0220.01017.57
8.1.70.0270.00617.57
8.1.60.0240.00817.57
8.1.50.0220.00917.57
8.1.40.0250.00617.57
8.1.30.0320.00017.57
8.1.20.0300.00317.57
8.1.10.0290.00317.57
8.1.00.0270.00317.57
8.0.300.0250.00417.57
8.0.290.0240.00717.57
8.0.280.0190.00917.57
8.0.270.0220.00617.57
8.0.260.0250.00317.57
8.0.250.0250.00317.57
8.0.240.0270.00017.57
8.0.230.0190.00917.57
8.0.220.0140.01417.57
8.0.210.0250.00317.57
8.0.200.0240.00517.57
8.0.190.0210.00717.57
8.0.180.0240.00317.57
8.0.170.0200.00817.57
8.0.160.0250.00617.57
8.0.150.0250.00317.57
8.0.140.0210.00717.57
8.0.130.0260.00317.57
8.0.120.0250.00617.57
8.0.110.0310.00417.57
8.0.100.0250.00317.57
8.0.90.0260.00317.57
8.0.80.0230.00517.57
8.0.70.0290.00317.57
8.0.60.0260.00317.57
8.0.50.0280.00017.57
8.0.30.0220.00617.57
8.0.20.0210.00617.57
8.0.10.0250.00417.57
7.4.330.0300.00916.28

preferences:
99.31 ms | 403 KiB | 5 Q