3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( array ( 'title' => 'About Us', 'url' => '/about-us/', 'children' => array ( array ( 'title' => 'Who We Are', 'url' => '/who-we-are/', ), array ( 'title' => 'What We Do', 'url' => '/what-we-do/', ), array ( 'title' => 'Other Things', 'url' => '/other-things/', ), ), ), array ( 'title' => 'Random', 'url' => '/random/', 'children' => array ( array ( 'title' => 'Link One', 'url' => '/link-one/', ), array ( 'title' => 'Link Two', 'url' => '/link-two/', 'children' => array ( array ( 'title' => 'Level Three', 'url' => '/level-three/', ), ), ), ), ), ); $json = array2json($data);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function array2json() in /in/UHDDE:57 Stack trace: #0 {main} thrown in /in/UHDDE on line 57
Process exited with code 255.

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