3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonp_string = preg_replace("/[^(]*\((.*)\)/", "$1", file_get_contents("http://9gag.com/")); $json = json_decode($jsonp_string, true); echo $json['count'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jI2cG
function name:  (null)
number of ops:  17
compiled vars:  !0 = $jsonp_string, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%5B%5E%28%5D%2A%5C%28%28.%2A%29%5C%29%2F'
          2        SEND_VAL                                                 '%241'
          3        INIT_FCALL                                               'file_get_contents'
          4        SEND_VAL                                                 'http%3A%2F%2F9gag.com%2F'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    4     9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    5    14        FETCH_DIM_R                                      ~7      !1, 'count'
         15        ECHO                                                     ~7
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.79 ms | 1394 KiB | 19 Q