3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array(1,3,2); foreach ($arr as $key => $value) { $data = [ 'table' => 'tbl_worker_exp', 'val'=>array( 'country_id'=>$value), 'where' => ['sub_id'=>2] ]; show($data); } function show($arr){ print_r($arr); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [table] => tbl_worker_exp [val] => Array ( [country_id] => 1 ) [where] => Array ( [sub_id] => 2 ) ) Array ( [table] => tbl_worker_exp [val] => Array ( [country_id] => 3 ) [where] => Array ( [sub_id] => 2 ) ) Array ( [table] => tbl_worker_exp [val] => Array ( [country_id] => 2 ) [where] => Array ( [sub_id] => 2 ) )

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:
41.91 ms | 1510 KiB | 4 Q