3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myarray= Array ( [0] => Array ( [id] => '3', [first_name] => 'Jim', [last_name] => 'Dude', ), [1] => Array ( [id] => '4', [first_name] => 'John', [last_name] => 'Dude2', ) ); echo $myarray; ?>
based on qOLVN
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant id - assumed 'id' in /in/nWmqV on line 6 Warning: Illegal offset type in /in/nWmqV on line 6 Notice: Use of undefined constant first_name - assumed 'first_name' in /in/nWmqV on line 7 Warning: Illegal offset type in /in/nWmqV on line 7 Notice: Use of undefined constant last_name - assumed 'last_name' in /in/nWmqV on line 8 Warning: Illegal offset type in /in/nWmqV on line 8 Warning: Illegal offset type in /in/nWmqV on line 8 Notice: Use of undefined constant id - assumed 'id' in /in/nWmqV on line 13 Warning: Illegal offset type in /in/nWmqV on line 13 Notice: Use of undefined constant first_name - assumed 'first_name' in /in/nWmqV on line 14 Warning: Illegal offset type in /in/nWmqV on line 14 Notice: Use of undefined constant last_name - assumed 'last_name' in /in/nWmqV on line 15 Warning: Illegal offset type in /in/nWmqV on line 15 Warning: Illegal offset type in /in/nWmqV on line 15 Notice: Array to string conversion in /in/nWmqV on line 18 Array
Output for hhvm-3.12.0
Notice: Use of undefined constant id - assumed 'id' in /in/nWmqV on line 6 Warning: Invalid operand type was used: Invalid type used as key in /in/nWmqV on line 6 Notice: Use of undefined constant first_name - assumed 'first_name' in /in/nWmqV on line 7 Warning: Invalid operand type was used: Invalid type used as key in /in/nWmqV on line 7 Notice: Use of undefined constant last_name - assumed 'last_name' in /in/nWmqV on line 8 Warning: Invalid operand type was used: Invalid type used as key in /in/nWmqV on line 8 Warning: Invalid operand type was used: Invalid type used as key in /in/nWmqV on line 9 Notice: Use of undefined constant id - assumed 'id' in /in/nWmqV on line 13 Warning: Invalid operand type was used: Invalid type used as key in /in/nWmqV on line 13 Notice: Use of undefined constant first_name - assumed 'first_name' in /in/nWmqV on line 14 Warning: Invalid operand type was used: Invalid type used as key in /in/nWmqV on line 14 Notice: Use of undefined constant last_name - assumed 'last_name' in /in/nWmqV on line 15 Warning: Invalid operand type was used: Invalid type used as key in /in/nWmqV on line 15 Warning: Invalid operand type was used: Invalid type used as key in /in/nWmqV on line 16 Notice: Array to string conversion in /in/nWmqV on line 18 Array
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.6.28
Notice: Use of undefined constant id - assumed 'id' in /in/nWmqV on line 6 Warning: Illegal offset type in /in/nWmqV on line 6 Notice: Use of undefined constant first_name - assumed 'first_name' in /in/nWmqV on line 7 Warning: Illegal offset type in /in/nWmqV on line 7 Notice: Use of undefined constant last_name - assumed 'last_name' in /in/nWmqV on line 8 Warning: Illegal offset type in /in/nWmqV on line 8 Warning: Illegal offset type in /in/nWmqV on line 9 Notice: Use of undefined constant id - assumed 'id' in /in/nWmqV on line 13 Warning: Illegal offset type in /in/nWmqV on line 13 Notice: Use of undefined constant first_name - assumed 'first_name' in /in/nWmqV on line 14 Warning: Illegal offset type in /in/nWmqV on line 14 Notice: Use of undefined constant last_name - assumed 'last_name' in /in/nWmqV on line 15 Warning: Illegal offset type in /in/nWmqV on line 15 Warning: Illegal offset type in /in/nWmqV on line 17 Notice: Array to string conversion in /in/nWmqV on line 18 Array
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/nWmqV on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[', expecting ')' in /in/nWmqV on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/nWmqV on line 4
Process exited with code 255.