3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = count(get_defined_vars()); $undef; @$nothing = $undef; $c = get_defined_vars(); @xdebug_debug_zval('nothing'); echo 'Declared vars:',"\n"; var_dump(xdebug_get_declared_vars()); echo 'Defined vars:<br>'; var_dump(array_slice($c, $a + 1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mZCKd
function name:  (null)
number of ops:  32
compiled vars:  !0 = $a, !1 = $undef, !2 = $nothing, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'get_defined_vars'
          1        DO_ICALL                                         $4      
          2        COUNT                                            ~5      $4
          3        ASSIGN                                                   !0, ~5
    6     4        BEGIN_SILENCE                                    ~7      
          5        ASSIGN                                                   !2, !1
          6        END_SILENCE                                              ~7
    8     7        INIT_FCALL                                               'get_defined_vars'
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !3, $9
   10    10        BEGIN_SILENCE                                    ~11     
         11        INIT_FCALL_BY_NAME                                       'xdebug_debug_zval'
         12        SEND_VAL_EX                                              'nothing'
         13        DO_FCALL                                      0          
         14        END_SILENCE                                              ~11
   12    15        ECHO                                                     'Declared+vars%3A'
         16        ECHO                                                     '%0A'
   13    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL_BY_NAME                                       'xdebug_get_declared_vars'
         19        DO_FCALL                                      0  $13     
         20        SEND_VAR                                                 $13
         21        DO_ICALL                                                 
   15    22        ECHO                                                     'Defined+vars%3A%3Cbr%3E'
   16    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'array_slice'
         25        SEND_VAR                                                 !3
         26        ADD                                              ~15     !0, 1
         27        SEND_VAL                                                 ~15
         28        DO_ICALL                                         $16     
         29        SEND_VAR                                                 $16
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.2 ms | 1396 KiB | 19 Q