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";
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/fqpC2
function name:  (null)
number of ops:  19
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
         18      > RETURN                                                   1

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fqpC2
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:
152.43 ms | 1389 KiB | 17 Q