3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = json_decode(file_get_contents('http://www.reddit.com/top.json')); $print = print_r($json, true); echo "print_r\n$print\n"; ob_start(); var_dump($json); $dump = ob_get_clean(); echo "var_dump\n$dump\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7WShk
function name:  (null)
number of ops:  29
compiled vars:  !0 = $json, !1 = $print, !2 = $dump
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 'http%3A%2F%2Fwww.reddit.com%2Ftop.json'
          3        DO_ICALL                                         $3      
          4        SEND_VAR                                                 $3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    4     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    5    12        ROPE_INIT                                     3  ~9      'print_r%0A'
         13        ROPE_ADD                                      1  ~9      ~9, !1
         14        ROPE_END                                      2  ~8      ~9, '%0A'
         15        ECHO                                                     ~8
    7    16        INIT_FCALL                                               'ob_start'
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
    9    21        INIT_FCALL                                               'ob_get_clean'
         22        DO_ICALL                                         $13     
         23        ASSIGN                                                   !2, $13
   10    24        ROPE_INIT                                     3  ~16     'var_dump%0A'
         25        ROPE_ADD                                      1  ~16     ~16, !2
         26        ROPE_END                                      2  ~15     ~16, '%0A'
         27        ECHO                                                     ~15
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.57 ms | 1395 KiB | 25 Q