3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = json_decode(' {"meta":{"status":200,"msg":"OK"},"response":{"blog":{"title":"Testing...","name":"ronenamiel","posts":30,"url":"http:\/\/ronenamiel.tumblr.com\/","updated":1375023620,"description":"","ask":true,"ask_anon":false,"is_nsfw":false,"share_likes":true,"likes":18},"posts":[{"blog_name":"ronenamiel","id":32799388197,"post_url":"http:\/\/ronenamiel.tumblr.com\/post\/32799388197\/do-you-like-south-park","slug":"do-you-like-south-park","type":"photo","date":"2012-10-03 11:37:57 GMT","timestamp":1349264277,"state":"published","format":"html","reblog_key":"cODFD7oD","tags":[],"short_url":"http:\/\/tmblr.co\/Z3VlZuUY-l8b","highlighted":[],"note_count":1,"caption":"\u003Cp\u003EDo you like South Park?\u003C\/p\u003E","photoset_layout":"12","photos":[{"caption":"","alt_sizes":[{"width":350,"height":232,"url":"http:\/\/24.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco1_400.jpg"},{"width":250,"height":166,"url":"http:\/\/31.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco1_250.jpg"},{"width":100,"height":66,"url":"http:\/\/31.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco1_100.jpg"},{"width":75,"height":75,"url":"http:\/\/31.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco1_75sq.jpg"}],"original_size":{"width":350,"height":232,"url":"http:\/\/24.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco1_400.jpg"}},{"caption":"","alt_sizes":[{"width":350,"height":232,"url":"http:\/\/31.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco2_400.jpg"},{"width":250,"height":166,"url":"http:\/\/25.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco2_250.jpg"},{"width":100,"height":66,"url":"http:\/\/25.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco2_100.jpg"},{"width":75,"height":75,"url":"http:\/\/31.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco2_75sq.jpg"}],"original_size":{"width":350,"height":232,"url":"http:\/\/31.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco2_400.jpg"}},{"caption":"","alt_sizes":[{"width":350,"height":232,"url":"http:\/\/31.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco3_400.jpg"},{"width":250,"height":166,"url":"http:\/\/25.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco3_250.jpg"},{"width":100,"height":66,"url":"http:\/\/31.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco3_100.jpg"},{"width":75,"height":75,"url":"http:\/\/24.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco3_75sq.jpg"}],"original_size":{"width":350,"height":232,"url":"http:\/\/31.media.tumblr.com\/tumblr_mbbez9ZGoE1rds4bco3_400.jpg"}}]}],"total_posts":1}}'); $data->response->total_posts = 50; print_r($data);
Output for 5.2.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
stdClass Object ( [meta] => stdClass Object ( [status] => 200 [msg] => OK ) [response] => stdClass Object ( [blog] => stdClass Object ( [title] => Testing... [name] => ronenamiel [posts] => 30 [url] => http://ronenamiel.tumblr.com/ [updated] => 1375023620 [description] => [ask] => 1 [ask_anon] => [is_nsfw] => [share_likes] => 1 [likes] => 18 ) [posts] => Array ( [0] => stdClass Object ( [blog_name] => ronenamiel [id] => 32799388197 [post_url] => http://ronenamiel.tumblr.com/post/32799388197/do-you-like-south-park [slug] => do-you-like-south-park [type] => photo [date] => 2012-10-03 11:37:57 GMT [timestamp] => 1349264277 [state] => published [format] => html [reblog_key] => cODFD7oD [tags] => Array ( ) [short_url] => http://tmblr.co/Z3VlZuUY-l8b [highlighted] => Array ( ) [note_count] => 1 [caption] => <p>Do you like South Park?</p> [photoset_layout] => 12 [photos] => Array ( [0] => stdClass Object ( [caption] => [alt_sizes] => Array ( [0] => stdClass Object ( [width] => 350 [height] => 232 [url] => http://24.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco1_400.jpg ) [1] => stdClass Object ( [width] => 250 [height] => 166 [url] => http://31.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco1_250.jpg ) [2] => stdClass Object ( [width] => 100 [height] => 66 [url] => http://31.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco1_100.jpg ) [3] => stdClass Object ( [width] => 75 [height] => 75 [url] => http://31.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco1_75sq.jpg ) ) [original_size] => stdClass Object ( [width] => 350 [height] => 232 [url] => http://24.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco1_400.jpg ) ) [1] => stdClass Object ( [caption] => [alt_sizes] => Array ( [0] => stdClass Object ( [width] => 350 [height] => 232 [url] => http://31.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco2_400.jpg ) [1] => stdClass Object ( [width] => 250 [height] => 166 [url] => http://25.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco2_250.jpg ) [2] => stdClass Object ( [width] => 100 [height] => 66 [url] => http://25.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco2_100.jpg ) [3] => stdClass Object ( [width] => 75 [height] => 75 [url] => http://31.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco2_75sq.jpg ) ) [original_size] => stdClass Object ( [width] => 350 [height] => 232 [url] => http://31.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco2_400.jpg ) ) [2] => stdClass Object ( [caption] => [alt_sizes] => Array ( [0] => stdClass Object ( [width] => 350 [height] => 232 [url] => http://31.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco3_400.jpg ) [1] => stdClass Object ( [width] => 250 [height] => 166 [url] => http://25.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco3_250.jpg ) [2] => stdClass Object ( [width] => 100 [height] => 66 [url] => http://31.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco3_100.jpg ) [3] => stdClass Object ( [width] => 75 [height] => 75 [url] => http://24.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco3_75sq.jpg ) ) [original_size] => stdClass Object ( [width] => 350 [height] => 232 [url] => http://31.media.tumblr.com/tumblr_mbbez9ZGoE1rds4bco3_400.jpg ) ) ) ) ) [total_posts] => 50 ) )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/35MZr on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/35MZr on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/35MZr on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/35MZr on line 3