3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = count(get_defined_vars()); $bla = 'beta'; $cla = 'gamma'; $undef; @$nothing = $undef; $c = get_defined_vars(); //@xdebug_debug_zval('nothing'); //echo 'Declared vars:<br>'; //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/UJs0W
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $bla, !2 = $cla, !3 = $undef, !4 = $nothing, !5 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'get_defined_vars'
          1        DO_ICALL                                         $6      
          2        COUNT                                            ~7      $6
          3        ASSIGN                                                   !0, ~7
    4     4        ASSIGN                                                   !1, 'beta'
    5     5        ASSIGN                                                   !2, 'gamma'
    8     6        BEGIN_SILENCE                                    ~11     
          7        ASSIGN                                                   !4, !3
          8        END_SILENCE                                              ~11
   10     9        INIT_FCALL                                               'get_defined_vars'
         10        DO_ICALL                                         $13     
         11        ASSIGN                                                   !5, $13
   17    12        ECHO                                                     'Defined+vars%3A%3Cbr%3E'
   18    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'array_slice'
         15        SEND_VAR                                                 !5
         16        ADD                                              ~15     !0, 1
         17        SEND_VAL                                                 ~15
         18        DO_ICALL                                         $16     
         19        SEND_VAR                                                 $16
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.53 ms | 1399 KiB | 19 Q