3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_meta = Array ( 'interest' => array(), 'type' => array(), 'user_status' => array('deny'), 'firstname' => array(), 'lastname' => array('B'), 'email' => 'email@cc.com'); $names = array_map( function($person) { return $person['name']; }, $user_meta );
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "name" in /in/7CMXh on line 10 Warning: Undefined array key "name" in /in/7CMXh on line 10 Warning: Undefined array key "name" in /in/7CMXh on line 10 Warning: Undefined array key "name" in /in/7CMXh on line 10 Warning: Undefined array key "name" in /in/7CMXh on line 10 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/7CMXh:10 Stack trace: #0 [internal function]: {closure}('email@cc.com') #1 /in/7CMXh(7): array_map(Object(Closure), Array) #2 {main} thrown in /in/7CMXh on line 10
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:
41.11 ms | 401 KiB | 8 Q