3v4l.org

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

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NuJAp
function name:  b
number of ops:  6
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      !1, !0
          3        ECHO                                                     ~2
          4      > RETURN                                                   !0
    5     5*     > RETURN                                                   null

End of function b

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.13 ms | 1402 KiB | 22 Q