3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; unset($a); var_dump(count($GLOBALS)); var_dump(array_filter($GLOBALS, function($v, $k) { return !in_array($k, ["GLOBALS", "_SERVER", "_GET", "_POST", "_COOKIE", "argv", "argc"]); }));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XH5hB
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        UNSET_CV                                                 !0
    6     2        INIT_FCALL                                               'var_dump'
          3        FETCH_R                      global              ~2      'GLOBALS'
          4        COUNT                                            ~3      ~2
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'array_filter'
          9        FETCH_R                      global              ~5      'GLOBALS'
         10        SEND_VAL                                                 ~5
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXH5hB%3A7%240'
    9    12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FXH5hB%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XH5hB
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $v, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        IN_ARRAY                                         ~2      !1, <array>
          3        BOOL_NOT                                         ~3      ~2
          4      > RETURN                                                   ~3
    9     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FXH5hB%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.14 ms | 1400 KiB | 17 Q