3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function b($t) { echo $t; return $t; } echo ((b(true) && b(false)) || b(false)) . "\n"; echo ((b(true) && b(true)) || b(false)) . "\n"; echo ((b(true) && b(false)) || b(false)) . "\n";
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
Jump found. Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
Jump found. Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
Jump found. Position 1 = 25, Position 2 = 29
Branch analysis from position: 25
Jump found. Position 1 = 35, Position 2 = 39
Branch analysis from position: 35
Jump found. Position 1 = 40, Position 2 = 44
Branch analysis from position: 40
Jump found. Position 1 = -2
Branch analysis from position: 44
Branch analysis from position: 39
Branch analysis from position: 29
Branch analysis from position: 24
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/bRPdR
function name:  (null)
number of ops:  47
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   7     1        INIT_FCALL                                               'b'
         2        SEND_VAL                                                 <true>
         3        DO_FCALL                                      0  $0      
         4      > JMPZ_EX                                          ~1      $0, ->9
         5    >   INIT_FCALL                                               'b'
         6        SEND_VAL                                                 <false>
         7        DO_FCALL                                      0  $2      
         8        BOOL                                             ~1      $2
         9    > > JMPNZ_EX                                         ~1      ~1, ->14
        10    >   INIT_FCALL                                               'b'
        11        SEND_VAL                                                 <false>
        12        DO_FCALL                                      0  $3      
        13        BOOL                                             ~1      $3
        14    >   CONCAT                                           ~4      ~1, '%0A'
        15        ECHO                                                     ~4
   8    16        INIT_FCALL                                               'b'
        17        SEND_VAL                                                 <true>
        18        DO_FCALL                                      0  $5      
        19      > JMPZ_EX                                          ~6      $5, ->24
        20    >   INIT_FCALL                                               'b'
        21        SEND_VAL                                                 <true>
        22        DO_FCALL                                      0  $7      
        23        BOOL                                             ~6      $7
        24    > > JMPNZ_EX                                         ~6      ~6, ->29
        25    >   INIT_FCALL                                               'b'
        26        SEND_VAL                                                 <false>
        27        DO_FCALL                                      0  $8      
        28        BOOL                                             ~6      $8
        29    >   CONCAT                                           ~9      ~6, '%0A'
        30        ECHO                                                     ~9
   9    31        INIT_FCALL                                               'b'
        32        SEND_VAL                                                 <true>
        33        DO_FCALL                                      0  $10     
        34      > JMPZ_EX                                          ~11     $10, ->39
        35    >   INIT_FCALL                                               'b'
        36        SEND_VAL                                                 <false>
        37        DO_FCALL                                      0  $12     
        38        BOOL                                             ~11     $12
        39    > > JMPNZ_EX                                         ~11     ~11, ->44
        40    >   INIT_FCALL                                               'b'
        41        SEND_VAL                                                 <false>
        42        DO_FCALL                                      0  $13     
        43        BOOL                                             ~11     $13
        44    >   CONCAT                                           ~14     ~11, '%0A'
        45        ECHO                                                     ~14
        46      > RETURN                                                   1

Function b:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/bRPdR
function name:  b
number of ops:  4
compiled vars:  !0 = $t
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   RECV                                             !0      
   4     1        ECHO                                                     !0
         2      > RETURN                                                   !0
   5     3*     > RETURN                                                   null

End of function b

Generated using Vulcan Logic Dumper, using php 7.2.0