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); $example = '{"thumbnail":{"@url":"http:\/\/www.livestream.com\/filestore\/user-files\/chlukeestv\/2010\/01\/04\/92609a8d-afa6-4832-a8b2-ac4dc2925f4b_10.jpg"}}'; $json = drupal_json_decode($example); $thumbnail = $json->thumbnail; return $thumbnail->{'@url'}; } echo _its_video_gallery_livestream_thumbnail('abc','123');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zc3du
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               '_its_video_gallery_livestream_thumbnail'
          1        SEND_VAL                                                 'abc'
          2        SEND_VAL                                                 '123'
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
          5      > 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/Zc3du
function name:  _its_video_gallery_livestream_thumbnail
number of ops:  12
compiled vars:  !0 = $cid, !1 = $vid, !2 = $example, !3 = $json, !4 = $thumbnail
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ASSIGN                                                   !2, '%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     3        INIT_FCALL_BY_NAME                                       'drupal_json_decode'
          4        SEND_VAR_EX                                              !2
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !3, $6
    8     7        FETCH_OBJ_R                                      ~8      !3, 'thumbnail'
          8        ASSIGN                                                   !4, ~8
    9     9        FETCH_OBJ_R                                      ~10     !4, '%40url'
         10      > RETURN                                                   ~10
   10    11*     > RETURN                                                   null

End of function _its_video_gallery_livestream_thumbnail

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.63 ms | 1397 KiB | 14 Q