3v4l.org

run code in 500+ 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.90.0110.00817.74
8.5.80.0080.00517.88
8.5.70.0100.00617.60
8.5.60.0070.00517.80
8.5.50.0090.00717.56
8.5.40.0100.00618.44
8.5.30.0100.00718.89
8.5.20.0090.00918.45
8.5.10.0150.00916.53
8.5.00.0120.00719.12
8.4.240.0100.00920.53
8.4.230.0090.00620.44
8.4.220.0120.01020.38
8.4.210.0120.01020.43
8.4.200.0120.00921.45
8.4.190.0140.00821.55
8.4.180.0150.00721.84
8.4.170.0120.00920.96
8.4.160.0120.01021.93
8.4.150.0090.00618.42
8.4.140.0140.00818.58
8.4.130.0110.00819.21
8.4.120.0130.00721.89
8.4.110.0130.00618.81
8.4.100.0120.00718.56
8.4.90.0120.00719.26
8.4.80.0120.00819.60
8.4.70.0110.00918.80
8.4.60.0100.00718.28
8.4.50.0090.00919.54
8.4.40.0100.00818.55
8.4.30.0100.00920.05
8.4.20.0090.01118.63
8.4.10.0100.00519.41
8.3.330.0110.00619.36
8.3.320.0070.00919.35
8.3.310.0140.00819.48
8.3.300.0110.01120.57
8.3.290.0150.00720.58
8.3.280.0130.00720.16
8.3.270.0130.00817.52
8.3.260.0140.00717.49
8.3.250.0130.00718.67
8.3.240.0120.00817.87
8.3.230.0110.00717.69
8.3.220.0140.00517.86
8.3.210.0130.00217.71
8.3.200.0080.00717.73
8.3.190.0090.00617.91
8.3.180.0140.00617.49
8.3.170.0110.00917.73
8.3.160.0130.00718.53
8.3.150.0110.01019.61
8.3.140.0060.00817.65
8.3.130.0110.00518.39
8.3.120.0070.00718.66
8.3.110.0080.01219.77
8.3.100.0090.01021.33
8.3.90.0080.00722.60
8.3.80.0090.00518.50
8.3.70.0110.00517.57
8.3.60.0120.00318.29
8.3.50.0130.00718.55
8.3.40.0120.00920.74
8.3.30.0120.00619.41
8.3.20.0070.00722.00
8.3.10.0070.00422.24
8.3.00.0050.00322.99
8.2.330.0080.00319.87
8.2.320.0080.00719.00
8.2.310.0060.00818.96
8.2.300.0120.00720.15
8.2.290.0190.00818.58
8.2.280.0160.00717.52
8.2.270.0170.01017.11
8.2.260.0230.00517.60
8.2.250.0200.00317.52
8.2.240.0200.00417.72
8.2.230.0180.00519.58
8.2.220.0160.00627.03
8.2.210.0180.00721.58
8.2.200.0130.00316.62
8.2.190.0120.00516.48
8.2.180.0120.00616.56
8.2.170.0150.00618.46
8.2.160.0110.00520.49
8.2.150.0140.00821.81
8.2.140.0150.00421.25
8.2.130.0140.00822.06
8.2.120.0160.00619.52
8.2.110.0180.00518.55
8.2.100.0240.00817.79
8.2.90.0210.00217.80
8.2.80.0200.00317.69
8.2.70.0270.00817.77
8.2.60.0190.00618.63
8.2.50.0290.00417.75
8.2.40.0230.00717.77
8.2.30.0260.00517.83
8.2.20.0260.00617.71
8.2.10.0260.00717.70
8.2.00.0250.00717.75
8.1.340.0230.00818.78
8.1.330.0150.00719.19
8.1.320.0170.00917.21
8.1.310.0180.00516.54
8.1.300.0180.01016.21
8.1.290.0190.00523.47
8.1.280.0210.00821.10
8.1.270.0120.01020.83
8.1.260.0130.00821.98
8.1.250.0100.00822.90
8.1.240.0100.00518.62
8.1.230.0100.00718.44
8.1.220.0200.00717.58
8.1.210.0250.00417.58
8.1.200.0210.00617.59
8.1.190.0170.01117.58
8.1.180.0220.00517.58
8.1.170.0190.00817.62
8.1.160.0200.00817.66
8.1.150.0220.00517.59
8.1.140.0190.00617.67
8.1.130.0210.00717.63
8.1.120.0220.00717.66
8.1.110.0220.00817.63
8.1.100.0190.00817.54
8.1.90.0260.00417.59
8.1.80.0200.00917.64
8.1.70.0230.00617.57
8.1.60.0210.00817.70
8.1.50.0200.01117.68
8.1.40.0210.00717.63
8.1.30.0240.00417.66
8.1.20.0210.00717.63
8.1.10.0180.00818.55
8.1.00.0190.00618.48
8.0.300.0180.00518.20
8.0.290.0160.00818.24
8.0.280.0140.00818.18
8.0.270.0160.00718.14
8.0.260.0190.00518.13
8.0.250.0180.00518.26
8.0.240.0210.00118.27
8.0.230.0150.00918.26
8.0.220.0110.01218.20
8.0.210.0270.00417.23
8.0.200.0240.00617.34
8.0.190.0210.00717.25
8.0.180.0270.00617.07
8.0.170.0230.01017.30
8.0.160.0250.00617.28
8.0.150.0220.00617.34
8.0.140.0170.00618.14
8.0.130.0240.00517.30
8.0.120.0170.00818.20
8.0.110.0210.00618.13
8.0.100.0170.00518.16
8.0.90.0180.00618.16
8.0.80.0170.00618.13
8.0.70.0230.00318.13
8.0.60.0190.00518.15
8.0.50.0220.00218.13
8.0.30.0170.00618.23
8.0.20.0170.00618.20
8.0.10.0170.00718.32
7.4.330.0300.00916.28

preferences:
46.42 ms | 1276 KiB | 5 Q