3v4l.org

run code in 300+ PHP versions simultaneously
<?php // The very top of your php script $vars = get_defined_vars(); // Now do your stuff $mystring = null; // Get all the variables defined in current scope $vars = array_diff(get_defined_vars(),$vars); echo '<pre>'; print_r($vars); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3mLCg
function name:  (null)
number of ops:  17
compiled vars:  !0 = $vars, !1 = $mystring
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'get_defined_vars'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    6     3        ASSIGN                                                   !1, null
    9     4        INIT_FCALL                                               'array_diff'
          5        INIT_FCALL                                               'get_defined_vars'
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !0, $6
   11    11        ECHO                                                     '%3Cpre%3E'
   12    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   13    15        ECHO                                                     '%3C%2Fpre%3E'
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.57 ms | 1394 KiB | 19 Q