3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __(){array_splice($GLOBALS,0,count($GLOBALS));}__(); function xx(){var_dump(count($GLOBALS));}xx();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DNj9Q
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               '__'
          1        DO_FCALL                                      0          
    3     2        INIT_FCALL                                               'xx'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function __:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DNj9Q
function name:  __
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'array_splice'
          1        FETCH_W                      global              $0      'GLOBALS'
          2        SEND_REF                                                 $0
          3        SEND_VAL                                                 0
          4        FETCH_R                      global              ~1      'GLOBALS'
          5        COUNT                                            ~2      ~1
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
          8      > RETURN                                                   null

End of function __

Function xx:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DNj9Q
function name:  xx
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_R                      global              ~0      'GLOBALS'
          2        COUNT                                            ~1      ~0
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
          5      > RETURN                                                   null

End of function xx

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.93 ms | 1402 KiB | 19 Q