3v4l.org

run code in 300+ PHP versions simultaneously
<?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
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
2 jumps found. (Code = 47) Position 1 = 24, Position 2 = 28
Branch analysis from position: 24
2 jumps found. (Code = 46) Position 1 = 34, Position 2 = 38
Branch analysis from position: 34
2 jumps found. (Code = 47) Position 1 = 39, Position 2 = 43
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
Branch analysis from position: 38
Branch analysis from position: 28
Branch analysis from position: 23
Branch analysis from position: 13
Branch analysis from position: 8
filename:       /in/bRPdR
function name:  (null)
number of ops:  46
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'b'
          1        SEND_VAL                                                 <true>
          2        DO_FCALL                                      0  $0      
          3      > JMPZ_EX                                          ~1      $0, ->8
          4    >   INIT_FCALL                                               'b'
          5        SEND_VAL                                                 <false>
          6        DO_FCALL                                      0  $2      
          7        BOOL                                             ~1      $2
          8    > > JMPNZ_EX                                         ~1      ~1, ->13
          9    >   INIT_FCALL                                               'b'
         10        SEND_VAL                                                 <false>
         11        DO_FCALL                                      0  $3      
         12        BOOL                                             ~1      $3
         13    >   CONCAT                                           ~4      ~1, '%0A'
         14        ECHO                                                     ~4
    8    15        INIT_FCALL                                               'b'
         16        SEND_VAL                                                 <true>
         17        DO_FCALL                                      0  $5      
         18      > JMPZ_EX                                          ~6      $5, ->23
         19    >   INIT_FCALL                                               'b'
         20        SEND_VAL                                                 <true>
         21        DO_FCALL                                      0  $7      
         22        BOOL                                             ~6      $7
         23    > > JMPNZ_EX                                         ~6      ~6, ->28
         24    >   INIT_FCALL                                               'b'
         25        SEND_VAL                                                 <false>
         26        DO_FCALL                                      0  $8      
         27        BOOL                                             ~6      $8
         28    >   CONCAT                                           ~9      ~6, '%0A'
         29        ECHO                                                     ~9
    9    30        INIT_FCALL                                               'b'
         31        SEND_VAL                                                 <true>
         32        DO_FCALL                                      0  $10     
         33      > JMPZ_EX                                          ~11     $10, ->38
         34    >   INIT_FCALL                                               'b'
         35        SEND_VAL                                                 <false>
         36        DO_FCALL                                      0  $12     
         37        BOOL                                             ~11     $12
         38    > > JMPNZ_EX                                         ~11     ~11, ->43
         39    >   INIT_FCALL                                               'b'
         40        SEND_VAL                                                 <false>
         41        DO_FCALL                                      0  $13     
         42        BOOL                                             ~11     $13
         43    >   CONCAT                                           ~14     ~11, '%0A'
         44        ECHO                                                     ~14
         45      > RETURN                                                   1

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) 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 8.0.0


preferences:
149.58 ms | 1403 KiB | 22 Q