3v4l.org

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

Function yep:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vujKc
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/vujKc
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:
143.21 ms | 1397 KiB | 15 Q