3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "TEST:11"; list($name, $value) = array_map('trim', explode(':', $name, 2)); var_dump($name); var_dump($value); $arrAux = array_map('trim', explode(':', $name, 2)); $name = $arrAux[0]; $value = $arrAux[1]; var_dump($name); var_dump($value);
Output for git.master, git.master_jit, rfc.property-hooks
string(4) "TEST" string(2) "11" Warning: Undefined array key 1 in /in/hlqsH on line 13 string(4) "TEST" NULL

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