3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.77 ms | 1394 KiB | 19 Q