3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); $x = 6; function tick_handler() { $a = 3; 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/SGL8M
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                                                    
   12     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/SGL8M
function name:  tick_handler
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 3
          1        TICKS                                                    
    9     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'get_defined_vars'
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7        TICKS                                                    
   10     8      > RETURN                                                   null

End of function tick_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.37 ms | 1395 KiB | 19 Q