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("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/rkCt6
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%2FrkCt6%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%2FrkCt6%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rkCt6
function name:  {closure}
number of ops:  14
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        INIT_FCALL                                               'in_array'
          3        SEND_VAL                                                 'GLOBALS'
          4        SEND_VAL                                                 '_SERVER'
          5        SEND_VAL                                                 '_GET'
          6        SEND_VAL                                                 '_POST'
          7        SEND_VAL                                                 '_COOKIE'
          8        SEND_VAL                                                 'argv'
          9        SEND_VAL                                                 'argc'
         10        DO_ICALL                                         $2      
         11        BOOL_NOT                                         ~3      $2
         12      > RETURN                                                   ~3
    9    13*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.09 ms | 1396 KiB | 19 Q