3v4l.org

run code in 300+ PHP versions simultaneously
<?php function yep(){}function nope(){} $a or yep(); echo ''; if ($a) yep(); else nope();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 1, Position 2 = 4
Branch analysis from position: 1
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/gUPc2
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > JMPNZ_EX                                         ~1      !0, ->4
          1    >   INIT_FCALL                                               'yep'
          2        DO_FCALL                                      0  $2      
          3        BOOL                                             ~1      $2
    6     4    >   ECHO                                                     ''
    8     5      > JMPZ                                                     !0, ->9
          6    >   INIT_FCALL                                               'yep'
          7        DO_FCALL                                      0          
          8      > JMP                                                      ->11
          9    >   INIT_FCALL                                               'nope'
         10        DO_FCALL                                      0          
         11    > > RETURN                                                   1

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

End of function yep

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

End of function nope

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.01 ms | 1398 KiB | 16 Q