3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n_data= [ "checklist1" => "major", "result_audit1" => "1", "checklist2" => "minor", "result_audit2" => "2", "checklist3" => "pico", "result_audit3" => "3", "checklist4" => "goodpoints", "result_audit4" => "4", "submit" => "Submit Now", ]; $chunked['checklist'] = array_chunk(array_splice($n_data, 0, count($n_data) - 1), 2); array_walk($chunked['checklist'], fn(&$v, $idx) => $v = ['selected' => $v[0], 'result_audit' => $v[1], 'origin' => 'checklist'. ($idx + 1)]); print_r($chunked);
Output for git.master, git.master_jit
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for rfc.property-hooks
Array ( [checklist] => Array ( [0] => Array ( [selected] => major [result_audit] => 1 [origin] => checklist1 ) [1] => Array ( [selected] => minor [result_audit] => 2 [origin] => checklist2 ) [2] => Array ( [selected] => pico [result_audit] => 3 [origin] => checklist3 ) [3] => Array ( [selected] => goodpoints [result_audit] => 4 [origin] => checklist4 ) ) )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.47 ms | 408 KiB | 5 Q