3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { echo 'A' . PHP_EOL; return FALSE; } function b() { echo 'B' . PHP_EOL; return FALSE; } function c() { echo 'C' . PHP_EOL; return TRUE; } function d() { echo 'D' . PHP_EOL; return FALSE; } function e() { echo 'E' . PHP_EOL; return FALSE; } function f() { echo 'F' . PHP_EOL; return FALSE; } var_dump(a() || b() || c() || d() || e() || f());
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 47) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 19
Branch analysis from position: 15
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/7HTLp
function name:  (null)
number of ops:  26
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'a'
          2        DO_FCALL                                      0  $0      
          3      > JMPNZ_EX                                         ~1      $0, ->7
          4    >   INIT_FCALL                                               'b'
          5        DO_FCALL                                      0  $2      
          6        BOOL                                             ~1      $2
          7    > > JMPNZ_EX                                         ~1      ~1, ->11
          8    >   INIT_FCALL                                               'c'
          9        DO_FCALL                                      0  $3      
         10        BOOL                                             ~1      $3
         11    > > JMPNZ_EX                                         ~1      ~1, ->15
         12    >   INIT_FCALL                                               'd'
         13        DO_FCALL                                      0  $4      
         14        BOOL                                             ~1      $4
         15    > > JMPNZ_EX                                         ~1      ~1, ->19
         16    >   INIT_FCALL                                               'e'
         17        DO_FCALL                                      0  $5      
         18        BOOL                                             ~1      $5
         19    > > JMPNZ_EX                                         ~1      ~1, ->23
         20    >   INIT_FCALL                                               'f'
         21        DO_FCALL                                      0  $6      
         22        BOOL                                             ~1      $6
         23    >   SEND_VAL                                                 ~1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

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

End of function a

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

End of function b

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

End of function c

Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7HTLp
function name:  d
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'D%0A'
          1      > RETURN                                                   <false>
          2*     > RETURN                                                   null

End of function d

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

End of function e

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.23 ms | 1403 KiB | 21 Q