3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = array(1, 1, 2, 3, 5, 8); $arr = get_defined_vars(); // print $b print_r($arr["b"]); /* print path to the PHP interpreter (if used as a CGI) * e.g. /usr/local/bin/php */ echo $arr["_"]; // print the command-line parameters if any print_r($arr["argv"]); // print all the server vars print_r($arr["_SERVER"]); // print all the available keys for the arrays of variables print_r(array_keys(get_defined_vars())); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J69ig
function name:  (null)
number of ops:  27
compiled vars:  !0 = $b, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'get_defined_vars'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !1, $3
    7     4        INIT_FCALL                                               'print_r'
          5        FETCH_DIM_R                                      ~5      !1, 'b'
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                                 
   11     8        FETCH_DIM_R                                      ~7      !1, '_'
          9        ECHO                                                     ~7
   14    10        INIT_FCALL                                               'print_r'
         11        FETCH_DIM_R                                      ~8      !1, 'argv'
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
   17    14        INIT_FCALL                                               'print_r'
         15        FETCH_DIM_R                                      ~10     !1, '_SERVER'
         16        SEND_VAL                                                 ~10
         17        DO_ICALL                                                 
   20    18        INIT_FCALL                                               'print_r'
         19        INIT_FCALL                                               'array_keys'
         20        INIT_FCALL                                               'get_defined_vars'
         21        DO_ICALL                                         $12     
         22        SEND_VAR                                                 $12
         23        DO_ICALL                                         $13     
         24        SEND_VAR                                                 $13
         25        DO_ICALL                                                 
   21    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.1 ms | 1395 KiB | 19 Q