3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = count(get_defined_vars()); session_start(); $b = 1; $c = get_defined_vars(); 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/3OqkI
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'get_defined_vars'
          1        DO_ICALL                                         $3      
          2        COUNT                                            ~4      $3
          3        ASSIGN                                                   !0, ~4
    4     4        INIT_FCALL                                               'session_start'
          5        DO_ICALL                                                 
    6     6        ASSIGN                                                   !1, 1
    8     7        INIT_FCALL                                               'get_defined_vars'
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !2, $8
   10    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'array_slice'
         12        SEND_VAR                                                 !2
         13        ADD                                              ~10     !0, 1
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                         $11     
         16        SEND_VAR                                                 $11
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.04 ms | 1399 KiB | 21 Q