3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_array = array("success"=>true ,'ab' => 2,'def' => 1); for ($i = 0; $i <= 6;$i++) { $data = [ 'lg_' . $i => 'LG: T-' . $i ]; array_push($input_array, $data); } print_r($input_array); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [success] => 1 [ab] => 2 [def] => 1 [0] => Array ( [lg_0] => LG: T-0 ) [1] => Array ( [lg_1] => LG: T-1 ) [2] => Array ( [lg_2] => LG: T-2 ) [3] => Array ( [lg_3] => LG: T-3 ) [4] => Array ( [lg_4] => LG: T-4 ) [5] => Array ( [lg_5] => LG: T-5 ) [6] => Array ( [lg_6] => LG: T-6 ) )

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:
31 ms | 407 KiB | 5 Q