3v4l.org

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

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