3v4l.org

run code in 300+ PHP versions simultaneously
<?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:  5
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'get_youtube_data'
          1        SEND_VAL                                                 'ik1PUh5GO3g'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
          4      > 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 8.0.0


preferences:
151.58 ms | 1397 KiB | 16 Q