3v4l.org

run code in 300+ PHP versions simultaneously
<?php function b($t,$s) { echo '[' . $s . ':' .($t ? 'true' : 'false') . ']'; return $t; } echo b((b(true,1) && b(false,2)) || b(false,3),4) . "\n"; echo b((b(true,1) && b(true, 2)) || b(false,3),4) . "\n"; echo b((b(false,1) && b(true,2)) || b(true,3),4) . "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 28, Position 2 = 33
Branch analysis from position: 28
2 jumps found. (Code = 47) Position 1 = 34, Position 2 = 39
Branch analysis from position: 34
2 jumps found. (Code = 46) Position 1 = 50, Position 2 = 55
Branch analysis from position: 50
2 jumps found. (Code = 47) Position 1 = 56, Position 2 = 61
Branch analysis from position: 56
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 61
Branch analysis from position: 55
Branch analysis from position: 39
Branch analysis from position: 33
Branch analysis from position: 17
Branch analysis from position: 11
filename:       /in/L6FFB
function name:  (null)
number of ops:  67
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        SEND_VAL                                                 1
          4        DO_FCALL                                      0  $0      
          5      > JMPZ_EX                                          ~1      $0, ->11
          6    >   INIT_FCALL                                               'b'
          7        SEND_VAL                                                 <false>
          8        SEND_VAL                                                 2
          9        DO_FCALL                                      0  $2      
         10        BOOL                                             ~1      $2
         11    > > JMPNZ_EX                                         ~1      ~1, ->17
         12    >   INIT_FCALL                                               'b'
         13        SEND_VAL                                                 <false>
         14        SEND_VAL                                                 3
         15        DO_FCALL                                      0  $3      
         16        BOOL                                             ~1      $3
         17    >   SEND_VAL                                                 ~1
         18        SEND_VAL                                                 4
         19        DO_FCALL                                      0  $4      
         20        CONCAT                                           ~5      $4, '%0A'
         21        ECHO                                                     ~5
    9    22        INIT_FCALL                                               'b'
         23        INIT_FCALL                                               'b'
         24        SEND_VAL                                                 <true>
         25        SEND_VAL                                                 1
         26        DO_FCALL                                      0  $6      
         27      > JMPZ_EX                                          ~7      $6, ->33
         28    >   INIT_FCALL                                               'b'
         29        SEND_VAL                                                 <true>
         30        SEND_VAL                                                 2
         31        DO_FCALL                                      0  $8      
         32        BOOL                                             ~7      $8
         33    > > JMPNZ_EX                                         ~7      ~7, ->39
         34    >   INIT_FCALL                                               'b'
         35        SEND_VAL                                                 <false>
         36        SEND_VAL                                                 3
         37        DO_FCALL                                      0  $9      
         38        BOOL                                             ~7      $9
         39    >   SEND_VAL                                                 ~7
         40        SEND_VAL                                                 4
         41        DO_FCALL                                      0  $10     
         42        CONCAT                                           ~11     $10, '%0A'
         43        ECHO                                                     ~11
   10    44        INIT_FCALL                                               'b'
         45        INIT_FCALL                                               'b'
         46        SEND_VAL                                                 <false>
         47        SEND_VAL                                                 1
         48        DO_FCALL                                      0  $12     
         49      > JMPZ_EX                                          ~13     $12, ->55
         50    >   INIT_FCALL                                               'b'
         51        SEND_VAL                                                 <true>
         52        SEND_VAL                                                 2
         53        DO_FCALL                                      0  $14     
         54        BOOL                                             ~13     $14
         55    > > JMPNZ_EX                                         ~13     ~13, ->61
         56    >   INIT_FCALL                                               'b'
         57        SEND_VAL                                                 <true>
         58        SEND_VAL                                                 3
         59        DO_FCALL                                      0  $15     
         60        BOOL                                             ~13     $15
         61    >   SEND_VAL                                                 ~13
         62        SEND_VAL                                                 4
         63        DO_FCALL                                      0  $16     
         64        CONCAT                                           ~17     $16, '%0A'
         65        ECHO                                                     ~17
         66      > RETURN                                                   1

Function b:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L6FFB
function name:  b
number of ops:  13
compiled vars:  !0 = $t, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        CONCAT                                           ~2      '%5B', !1
          3        CONCAT                                           ~3      ~2, '%3A'
          4      > JMPZ                                                     !0, ->7
          5    >   QM_ASSIGN                                        ~4      'true'
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~4      'false'
          8    >   CONCAT                                           ~5      ~3, ~4
          9        CONCAT                                           ~6      ~5, '%5D'
         10        ECHO                                                     ~6
    5    11      > RETURN                                                   !0
    6    12*     > RETURN                                                   null

End of function b

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.08 ms | 1407 KiB | 25 Q