3v4l.org

run code in 300+ PHP versions simultaneously
<?php $is_false = true; $is_false && a() || b(); function a(){echo 'a';} function b(){echo 'b';}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 5
filename:       /in/O8QPr
function name:  (null)
number of ops:  10
compiled vars:  !0 = $is_false
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1      > JMPZ_EX                                          ~2      !0, ->5
          2    >   INIT_FCALL_BY_NAME                                       'a'
          3        DO_FCALL                                      0  $3      
          4        BOOL                                             ~2      $3
          5    > > JMPNZ_EX                                         ~2      ~2, ->9
          6    >   INIT_FCALL_BY_NAME                                       'b'
          7        DO_FCALL                                      0  $4      
          8        BOOL                                             ~2      $4
    5     9    > > RETURN                                                   1

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

End of function b

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.87 ms | 1394 KiB | 13 Q