3v4l.org

run code in 300+ PHP versions simultaneously
<?php $option_array[] = array( "name" => "delivery", "options" => array( "sat", "sun") ); $option_array[] = array( "name" => "colour", "options" => array( "red", "blue", "green") ); $option_array[] = array( "name" => "size", "options" => array( "small", "medium", "large") ); var_dump($option_array);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(2) { ["name"]=> string(8) "delivery" ["options"]=> array(2) { [0]=> string(3) "sat" [1]=> string(3) "sun" } } [1]=> array(2) { ["name"]=> string(6) "colour" ["options"]=> array(3) { [0]=> string(3) "red" [1]=> string(4) "blue" [2]=> string(5) "green" } } [2]=> array(2) { ["name"]=> string(4) "size" ["options"]=> array(3) { [0]=> string(5) "small" [1]=> string(6) "medium" [2]=> string(5) "large" } } }

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