3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); $x = 6; function tick_handler() { var_dump(get_defined_vars()); } register_tick_function('tick_handler');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3jZtK
function name:  (null)
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   TICKS                                                    
    5     1        ASSIGN                                                   !0, 6
          2        TICKS                                                    
   11     3        INIT_FCALL                                               'register_tick_function'
          4        SEND_VAL                                                 'tick_handler'
          5        DO_ICALL                                                 
          6        TICKS                                                    
          7      > RETURN                                                   1

Function tick_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3jZtK
function name:  tick_handler
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'get_defined_vars'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5        TICKS                                                    
    9     6      > RETURN                                                   null

End of function tick_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.77 ms | 1386 KiB | 19 Q