3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * Fetch YouTube data from ID * @param string $id YouTube ID: http://youtube.com/watch?v=[ID] (es: http://youtube.com/watch?v=ik1PUh5GO3g) * @return array */ function get_youtube_data($id) { $data = "first=value&arr[]=foo+bar&arr[]=baz"; parse_str($data, $data); return $data; } $t = get_youtube_data('ik1PUh5GO3g');
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0