3v4l.org

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

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

End of function tick_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.67 ms | 1397 KiB | 17 Q