3v4l.org

run code in 200+ 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');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WH4tG
function name:  (null)
number of ops:  6
compiled vars:  !0 = $t
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E >   NOP                                                      
  16     1        INIT_FCALL                                               'get_youtube_data'
         2        SEND_VAL                                                 'ik1PUh5GO3g'
         3        DO_FCALL                                      0  $1      
         4        ASSIGN                                                   !0, $1
         5      > RETURN                                                   1

Function get_youtube_data:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WH4tG
function name:  get_youtube_data
number of ops:  8
compiled vars:  !0 = $id, !1 = $data
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E >   RECV                                             !0      
  10     1        ASSIGN                                                   !1, 'first%3Dvalue%26arr%5B%5D%3Dfoo%2Bbar%26arr%5B%5D%3Dbaz'
  11     2        INIT_FCALL                                               'parse_str'
         3        SEND_VAR                                                 !1
         4        SEND_REF                                                 !1
         5        DO_ICALL                                                 
  13     6      > RETURN                                                   !1
  14     7*     > RETURN                                                   null

End of function get_youtube_data

Generated using Vulcan Logic Dumper, using php 7.3.0