3v4l.org

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

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

End of function b

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.13 ms | 1407 KiB | 25 Q