3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); function t_handler() { echo "Example function\n"; } register_tick_function('t_handler'); $x = 1; if ($x > 0) { $x += 2; print($x); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/TKk42
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   TICKS                                                    
    7     1        INIT_FCALL                                               'register_tick_function'
          2        SEND_VAL                                                 't_handler'
          3        DO_ICALL                                                 
          4        TICKS                                                    
    8     5        ASSIGN                                                   !0, 1
          6        TICKS                                                    
    9     7        IS_SMALLER                                               0, !0
          8      > JMPZ                                                     ~3, ->13
   10     9    >   ASSIGN_OP                                     1          !0, 2
         10        TICKS                                                    
   11    11        ECHO                                                     !0
         12        TICKS                                                    
   13    13    > > RETURN                                                   1

Function t_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TKk42
function name:  t_handler
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'Example+function%0A'
          1        TICKS                                                    
    6     2      > RETURN                                                   null

End of function t_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.1 ms | 1395 KiB | 15 Q