3v4l.org

run code in 300+ PHP versions simultaneously
<?php $j = count(get_defined_vars()); $a=8; $b=serialize(['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/J3QM2
function name:  (null)
number of ops:  21
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        INIT_FCALL                                               'serialize'
          6        SEND_VAL                                                 <array>
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !2, $8
   15     9        INIT_FCALL                                               'get_defined_vars'
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !3, $10
   16    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'array_slice'
         14        SEND_VAR                                                 !3
         15        ADD                                              ~12     !0, 1
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                         $13     
         18        SEND_VAR                                                 $13
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.3 ms | 1395 KiB | 21 Q