3v4l.org

run code in 300+ PHP versions simultaneously
<?php $questanswer = 'happy all'; $wlist = array( array (4), array ('myself', 'labor', 'fresh', 'dollars', 'rose', 'quantity', 'mass', 'practices', 'therapy') ); $searchindex = 1; //convert object to array $convert = (array)$wlist; //now add the answer to it $convert[$searchindex][] = $questanswer; print_r($convert);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => 4 ) [1] => Array ( [0] => myself [1] => labor [2] => fresh [3] => dollars [4] => rose [5] => quantity [6] => mass [7] => practices [8] => therapy [9] => happy all ) )

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:
65.94 ms | 402 KiB | 8 Q