3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f1() { echo 1; return true; } function f2() { echo 2; return false; } $a = true; $a = f1() & f2(); var_dump($a); $a = true; $a = f2() & f1(); var_dump($a); $a = true; $a = f1() & f1(); var_dump($a); $a = true; $a = f2() & f2(); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MtNEd
function name:  (null)
number of ops:  41
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, <true>
   14     1        INIT_FCALL                                               'f1'
          2        DO_FCALL                                      0  $2      
          3        INIT_FCALL                                               'f2'
          4        DO_FCALL                                      0  $3      
          5        BW_AND                                           ~4      $2, $3
          6        ASSIGN                                                   !0, ~4
   16     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   18    10        ASSIGN                                                   !0, <true>
   19    11        INIT_FCALL                                               'f2'
         12        DO_FCALL                                      0  $8      
         13        INIT_FCALL                                               'f1'
         14        DO_FCALL                                      0  $9      
         15        BW_AND                                           ~10     $8, $9
         16        ASSIGN                                                   !0, ~10
   21    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
   23    20        ASSIGN                                                   !0, <true>
   24    21        INIT_FCALL                                               'f1'
         22        DO_FCALL                                      0  $14     
         23        INIT_FCALL                                               'f1'
         24        DO_FCALL                                      0  $15     
         25        BW_AND                                           ~16     $14, $15
         26        ASSIGN                                                   !0, ~16
   26    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                                 
   28    30        ASSIGN                                                   !0, <true>
   29    31        INIT_FCALL                                               'f2'
         32        DO_FCALL                                      0  $20     
         33        INIT_FCALL                                               'f2'
         34        DO_FCALL                                      0  $21     
         35        BW_AND                                           ~22     $20, $21
         36        ASSIGN                                                   !0, ~22
   31    37        INIT_FCALL                                               'var_dump'
         38        SEND_VAR                                                 !0
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

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

End of function f1

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

End of function f2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.16 ms | 1403 KiB | 23 Q