3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { echo "foo"; } function bar() { echo "bar"; } function zot() { echo "zot"; } function fot() { echo "fot"; } echo true ? (foo() OR bar()) : (zot() OR fot()); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 9
Branch analysis from position: 1
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
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: 7
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/Z1Ped
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E > > JMPZ                                                     <true>, ->9
          1    >   INIT_FCALL                                               'foo'
          2        DO_FCALL                                      0  $0      
          3      > JMPNZ_EX                                         ~1      $0, ->7
          4    >   INIT_FCALL                                               'bar'
          5        DO_FCALL                                      0  $2      
          6        BOOL                                             ~1      $2
          7    >   QM_ASSIGN                                        ~3      ~1
          8      > JMP                                                      ->16
          9    >   INIT_FCALL                                               'zot'
         10        DO_FCALL                                      0  $4      
         11      > JMPNZ_EX                                         ~5      $4, ->15
         12    >   INIT_FCALL                                               'fot'
         13        DO_FCALL                                      0  $6      
         14        BOOL                                             ~5      $6
         15    >   QM_ASSIGN                                        ~3      ~5
         16    >   ECHO                                                     ~3
   22    17      > RETURN                                                   1

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

End of function foo

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

End of function bar

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

End of function zot

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

End of function fot

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.87 ms | 1394 KiB | 17 Q