3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vars['one'] = '31234'; $vars['two'] = 'sldf'; $vars['three'] = 1 - 1; $return_array = []; foreach ($vars as $key => $value){ echo "---------------Just value<br>"; var_dump($value); echo "<br>"; $value != '' ? ($return_array[$key] = $value) : null; echo "---------------array of key<br>"; var_dump($return_array[$key]); echo "<br>"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
---------------Just value<br>string(5) "31234" <br>---------------array of key<br>string(5) "31234" <br>---------------Just value<br>string(4) "sldf" <br>---------------array of key<br>string(4) "sldf" <br>---------------Just value<br>int(0) <br>---------------array of key<br>int(0) <br>

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:
55.45 ms | 401 KiB | 8 Q