3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.68 ms | 1394 KiB | 19 Q