3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); 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 = 8, Position 2 = 18
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/5PNiT
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   TICKS                                                    
    8     1        ASSIGN                                                   !0, 1
          2        TICKS                                                    
    9     3        INIT_FCALL                                               'tick_handler'
          4        DO_FCALL                                      0          
          5        TICKS                                                    
   11     6        IS_SMALLER                                               0, !0
          7      > JMPZ                                                     ~3, ->18
   12     8    >   ASSIGN_OP                                     1          !0, 2
          9        TICKS                                                    
   13    10        INIT_FCALL                                               'tick_handler'
         11        DO_FCALL                                      0          
         12        TICKS                                                    
   14    13        ECHO                                                     !0
         14        TICKS                                                    
   15    15        INIT_FCALL                                               'tick_handler'
         16        DO_FCALL                                      0          
         17        TICKS                                                    
   17    18    >   INIT_FCALL                                               'tick_handler'
         19        DO_FCALL                                      0          
         20        TICKS                                                    
   19    21      > RETURN                                                   1

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

End of function tick_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.97 ms | 1402 KiB | 17 Q