3v4l.org

run code in 300+ PHP versions simultaneously
<?php $j = count(get_defined_vars()); $a=8; $b=['b','mm']; $k = get_defined_vars(); var_dump(array_slice($k, $j + 1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sBqsp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $j, !1 = $a, !2 = $b, !3 = $k
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
   10     4        ASSIGN                                                   !1, 8
   11     5        ASSIGN                                                   !2, <array>
   15     6        INIT_FCALL                                               'get_defined_vars'
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !3, $9
   16     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'array_slice'
         11        SEND_VAR                                                 !3
         12        ADD                                              ~11     !0, 1
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                         $12     
         15        SEND_VAR                                                 $12
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.08 ms | 1394 KiB | 19 Q