3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = [ ["id"]=> "1", ["uid"]=> NULL, ["email"]=> "email@gmail.com", ["first_name"]=> "Andrés", ["last_name"]=> "Last Namé", ["location"]=> "Dirección 1234 (Chaco)", ["phone"]=> "1234567890", ["date_created"]=> "2014-03-07 15:25:43", ["date_modified"]=> "2014-03-07 15:25:43" ]; echo json_encode($a);
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: Invalid type used as key in /in/YAlq0 on line 4 Warning: Invalid operand type was used: Invalid type used as key in /in/YAlq0 on line 6 Warning: Invalid operand type was used: Invalid type used as key in /in/YAlq0 on line 8 Warning: Invalid operand type was used: Invalid type used as key in /in/YAlq0 on line 10 Warning: Invalid operand type was used: Invalid type used as key in /in/YAlq0 on line 12 Warning: Invalid operand type was used: Invalid type used as key in /in/YAlq0 on line 14 Warning: Invalid operand type was used: Invalid type used as key in /in/YAlq0 on line 16 Warning: Invalid operand type was used: Invalid type used as key in /in/YAlq0 on line 18 Warning: Invalid operand type was used: Invalid type used as key in /in/YAlq0 on line 20 []
Output for 5.4.0 - 5.6.28
Warning: Illegal offset type in /in/YAlq0 on line 4 Warning: Illegal offset type in /in/YAlq0 on line 6 Warning: Illegal offset type in /in/YAlq0 on line 8 Warning: Illegal offset type in /in/YAlq0 on line 10 Warning: Illegal offset type in /in/YAlq0 on line 12 Warning: Illegal offset type in /in/YAlq0 on line 14 Warning: Illegal offset type in /in/YAlq0 on line 16 Warning: Illegal offset type in /in/YAlq0 on line 18 Warning: Illegal offset type in /in/YAlq0 on line 21 []
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/YAlq0 on line 2
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 '[' in /in/YAlq0 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/YAlq0 on line 2
Process exited with code 255.