3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r( array( 'asdf'=>array('asdfasd6', 'asdf4'=>array('asdfasd'), ), 'asdf1'=>array('asdfasd'), 'asdf2'=>234234, 'asdf3'=>array('asdfasd'), ) );
based on UNjPs
Output for 4.3.0 - 5.2.17, 5.4.39 - 7.3.0beta1
Array ( [asdf] => Array ( [0] => asdfasd6 [asdf4] => Array ( [0] => asdfasd ) ) [asdf1] => Array ( [0] => asdfasd ) [asdf2] => 234234 [asdf3] => Array ( [0] => asdfasd ) )
Output for 5.3.0 - 5.4.38
Array ( [asdf] => Array ( [0] => asdfasd6 [asdf4] => Array ( [0] => asdfasd ) ) [asdf1] => Array ( [0] => asdfasd ) [asdf2] => 234234 [asdf3] => Array ( [0] => asdfasd ) ) PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 7 in Unknown on line 0