3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); if (function_exists('register_tick_function')): register_tick_function('hello'); endif; function hello() { echo 'hello'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/2Vr4C
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   TICKS                                                    
    4     1        INIT_FCALL                                               'function_exists'
          2        SEND_VAL                                                 'register_tick_function'
          3        DO_ICALL                                         $0      
          4      > JMPZ                                                     $0, ->9
    5     5    >   INIT_FCALL                                               'register_tick_function'
          6        SEND_VAL                                                 'hello'
          7        DO_ICALL                                                 
          8        TICKS                                                    
   10     9    > > RETURN                                                   1

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

End of function hello

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.49 ms | 1394 KiB | 17 Q