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); */ $a = true; $a = $a && f1(); $a = $a && f2(); var_dump($a); $a = true; $a = $a && f2(); $a = $a && f1(); var_dump($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 19
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/4Zle6
function name:  (null)
number of ops:  29
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   ASSIGN                                                   !0, <true>
   37     1      > JMPZ_EX                                          ~2      !0, ->5
          2    >   INIT_FCALL                                               'f1'
          3        DO_FCALL                                      0  $3      
          4        BOOL                                             ~2      $3
          5    >   ASSIGN                                                   !0, ~2
   38     6      > JMPZ_EX                                          ~5      !0, ->10
          7    >   INIT_FCALL                                               'f2'
          8        DO_FCALL                                      0  $6      
          9        BOOL                                             ~5      $6
         10    >   ASSIGN                                                   !0, ~5
   39    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   42    14        ASSIGN                                                   !0, <true>
   43    15      > JMPZ_EX                                          ~10     !0, ->19
         16    >   INIT_FCALL                                               'f2'
         17        DO_FCALL                                      0  $11     
         18        BOOL                                             ~10     $11
         19    >   ASSIGN                                                   !0, ~10
   44    20      > JMPZ_EX                                          ~13     !0, ->24
         21    >   INIT_FCALL                                               'f1'
         22        DO_FCALL                                      0  $14     
         23        BOOL                                             ~13     $14
         24    >   ASSIGN                                                   !0, ~13
   45    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Function f1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Zle6
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/4Zle6
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:
157.28 ms | 1403 KiB | 19 Q