3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = parse_ini_string('[Section] cast.float = 1.2 cast.string = "fsdjlk" cast.int = 123456 cast.negativeInt = -123456 cast.PostiveInt = +123456 cast.null = null cast.noAssignment cast.bool.true = true cast.bool.false = false cast.installroot[] = 123456 cast.installroot[] = INSTALL_ROOT "waa" cast.installroot[] = INSTALL_ROOT cast.installroot[] = "waa" INSTALL_ROOT cast.installroot[] = INSTALL_ROOT "INSTALL_ROOT"', true, INI_SCANNER_RAW); var_dump($array);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["Section"]=> array(9) { ["cast.float"]=> string(3) "1.2" ["cast.string"]=> string(6) "fsdjlk" ["cast.int"]=> string(6) "123456" ["cast.negativeInt"]=> string(7) "-123456" ["cast.PostiveInt"]=> string(7) "+123456" ["cast.null"]=> string(4) "null" ["cast.bool.true"]=> string(4) "true" ["cast.bool.false"]=> string(5) "false" ["cast.installroot"]=> array(5) { [0]=> string(6) "123456" [1]=> string(18) "INSTALL_ROOT "waa"" [2]=> string(12) "INSTALL_ROOT" [3]=> string(18) ""waa" INSTALL_ROOT" [4]=> string(27) "INSTALL_ROOT "INSTALL_ROOT"" } } }

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