3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '[{"subscription_id": "1","object": "user","object_id": "1234","changed_aspect": "media","time": 1297286541},{"subscription_id": "2","object": "tag","object_id": "nofilter","changed_aspect": "media","time": 1297286541},]'; $arr = array(); $arr = json_decode($string); json_last_error() print_r($arr);
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'print_r' (T_STRING) in /in/ln0Uu on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/ln0Uu on line 9
Process exited with code 255.