3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _its_video_gallery_livestream_thumbnail($cid, $vid) { $url = 'http://x'.$cid.'x.api.channel.livestream.com/2.0/thumbnail.json?id='.$vid; // $response = drupal_http_request($url); // $data = $response->data; $data = '{"thumbnail":{"@url":"http:\/\/www.livestream.com\/filestore\/user-files\/chlukeestv\/2010\/01\/04\/92609a8d-afa6-4832-a8b2-ac4dc2925f4b_10.jpg"}}'; $decode = json_decode($data); var_dump($decode); } _its_video_gallery_livestream_thumbnail('abc','def');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/avY3c
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               '_its_video_gallery_livestream_thumbnail'
          1        SEND_VAL                                                 'abc'
          2        SEND_VAL                                                 'def'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function _its_video_gallery_livestream_thumbnail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/avY3c
function name:  _its_video_gallery_livestream_thumbnail
number of ops:  15
compiled vars:  !0 = $cid, !1 = $vid, !2 = $url, !3 = $data, !4 = $decode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        CONCAT                                           ~5      'http%3A%2F%2Fx', !0
          3        CONCAT                                           ~6      ~5, 'x.api.channel.livestream.com%2F2.0%2Fthumbnail.json%3Fid%3D'
          4        CONCAT                                           ~7      ~6, !1
          5        ASSIGN                                                   !2, ~7
    6     6        ASSIGN                                                   !3, '%7B%22thumbnail%22%3A%7B%22%40url%22%3A%22http%3A%5C%2F%5C%2Fwww.livestream.com%5C%2Ffilestore%5C%2Fuser-files%5C%2Fchlukeestv%5C%2F2010%5C%2F01%5C%2F04%5C%2F92609a8d-afa6-4832-a8b2-ac4dc2925f4b_10.jpg%22%7D%7D'
    7     7        INIT_FCALL                                               'json_decode'
          8        SEND_VAR                                                 !3
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !4, $10
    8    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                                 
    9    14      > RETURN                                                   null

End of function _its_video_gallery_livestream_thumbnail

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.89 ms | 1398 KiB | 18 Q