3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test2($random) { if ($random) test2a(); else test2b(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sKEMg
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                       1

Function test2:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sKEMg
function name:  test2
number of ops:  8
compiled vars:  !0 = $random
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    5     1      > JMPZ                                                         !0, ->5
    6     2    >   INIT_FCALL_BY_NAME                                           'test2a'
          3        DO_FCALL                                          0          
    5     4      > JMP                                                          ->7
    8     5    >   INIT_FCALL_BY_NAME                                           'test2b'
          6        DO_FCALL                                          0          
    9     7    > > RETURN                                                       null

End of function test2

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
217.23 ms | 1960 KiB | 13 Q