3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mainstack = ['applet' => "Flow"]; $menustack = ['applet' => "Menu", 'repeat' => "2"]; $dialstack = []; $dial1 = ['applet' => "Dial", 'number' => "165465468", 'whisper' => "Yes"]; $dial2 = ['applet' => "Dial", 'number' => "654984", 'whisper' => "No"]; $dial3 = ['applet' => "Dial", 'number' => "398965165", 'whisper' => "Yes"]; $mainstack[] = &$menustack; array_push($dialstack, $dial1, $dial2, $dial3); $menustack[] = $dialstack; var_export($mainstack);
Output for git.master_jit, git.master
array ( 'applet' => 'Flow', 0 => array ( 'applet' => 'Menu', 'repeat' => '2', 0 => array ( 0 => array ( 'applet' => 'Dial', 'number' => '165465468', 'whisper' => 'Yes', ), 1 => array ( 'applet' => 'Dial', 'number' => '654984', 'whisper' => 'No', ), 2 => array ( 'applet' => 'Dial', 'number' => '398965165', 'whisper' => 'Yes', ), ), ), )

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:
56.23 ms | 406 KiB | 5 Q