3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { print("A"); return true; } function b() { print("B"); return false; } var_dump((boolean)(intval(a()) | intval(b()))); var_dump((boolean)(intval(a()) & intval(b())));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uNuu6
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'a'
          2        DO_FCALL                                      0  $0      
          3        CAST                                          4  ~1      $0
          4        INIT_FCALL                                               'b'
          5        DO_FCALL                                      0  $2      
          6        CAST                                          4  ~3      $2
          7        BW_OR                                            ~4      ~1, ~3
          8        BOOL                                             ~5      ~4
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
   12    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'a'
         13        DO_FCALL                                      0  $7      
         14        CAST                                          4  ~8      $7
         15        INIT_FCALL                                               'b'
         16        DO_FCALL                                      0  $9      
         17        CAST                                          4  ~10     $9
         18        BW_AND                                           ~11     ~8, ~10
         19        BOOL                                             ~12     ~11
         20        SEND_VAL                                                 ~12
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uNuu6
function name:  a
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'A'
    4     1      > RETURN                                                   <true>
    5     2*     > RETURN                                                   null

End of function a

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uNuu6
function name:  b
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'B'
    9     1      > RETURN                                                   <false>
   10     2*     > RETURN                                                   null

End of function b

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.54 ms | 1399 KiB | 19 Q