3v4l.org

run code in 300+ PHP versions simultaneously
<?php function q6($var1, $var2, $var3) { $var4 = (($var1 == $var2)); $var5 = (($var4 == true) ? false : true); $var6 = (($var2 <> $var3) || (!$var2 && !$var3)); $var7 = (($var5 || $var6)); $var8 = ((!$var5) && (!$var7)); var_dmp($var8); } q6(0, 0, 0); q6(0, 0, 1); q6(0, 1, 0); q6(0, 1, 1); q6(1, 0, 0); q6(1, 0, 1); q6(1, 1, 0); q6(0, 1, 1); q6(1, 1, 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l4MgB
function name:  (null)
number of ops:  46
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'q6'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 0
          4        DO_FCALL                                      0          
   13     5        INIT_FCALL                                               'q6'
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 1
          9        DO_FCALL                                      0          
   14    10        INIT_FCALL                                               'q6'
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 1
         13        SEND_VAL                                                 0
         14        DO_FCALL                                      0          
   15    15        INIT_FCALL                                               'q6'
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 1
         18        SEND_VAL                                                 1
         19        DO_FCALL                                      0          
   16    20        INIT_FCALL                                               'q6'
         21        SEND_VAL                                                 1
         22        SEND_VAL                                                 0
         23        SEND_VAL                                                 0
         24        DO_FCALL                                      0          
   17    25        INIT_FCALL                                               'q6'
         26        SEND_VAL                                                 1
         27        SEND_VAL                                                 0
         28        SEND_VAL                                                 1
         29        DO_FCALL                                      0          
   18    30        INIT_FCALL                                               'q6'
         31        SEND_VAL                                                 1
         32        SEND_VAL                                                 1
         33        SEND_VAL                                                 0
         34        DO_FCALL                                      0          
   19    35        INIT_FCALL                                               'q6'
         36        SEND_VAL                                                 0
         37        SEND_VAL                                                 1
         38        SEND_VAL                                                 1
         39        DO_FCALL                                      0          
   20    40        INIT_FCALL                                               'q6'
         41        SEND_VAL                                                 1
         42        SEND_VAL                                                 1
         43        SEND_VAL                                                 1
         44        DO_FCALL                                      0          
         45      > RETURN                                                   1

Function q6:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 21
Branch analysis from position: 17
Branch analysis from position: 18
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
Branch analysis from position: 18
filename:       /in/l4MgB
function name:  q6
number of ops:  31
compiled vars:  !0 = $var1, !1 = $var2, !2 = $var3, !3 = $var4, !4 = $var5, !5 = $var6, !6 = $var7, !7 = $var8
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        IS_EQUAL                                         ~8      !0, !1
          4        ASSIGN                                                   !3, ~8
    5     5        BOOL                                             ~10     !3
          6      > JMPZ                                                     ~10, ->9
          7    >   QM_ASSIGN                                        ~11     <false>
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~11     <true>
         10    >   ASSIGN                                                   !4, ~11
    6    11        IS_NOT_EQUAL                                     ~13     !1, !2
         12      > JMPNZ_EX                                         ~13     ~13, ->18
         13    >   BOOL_NOT                                         ~14     !1
         14      > JMPZ_EX                                          ~14     ~14, ->17
         15    >   BOOL_NOT                                         ~15     !2
         16        BOOL                                             ~14     ~15
         17    >   BOOL                                             ~13     ~14
         18    >   ASSIGN                                                   !5, ~13
    7    19      > JMPNZ_EX                                         ~17     !4, ->21
         20    >   BOOL                                             ~17     !5
         21    >   ASSIGN                                                   !6, ~17
    8    22        BOOL_NOT                                         ~19     !4
         23      > JMPZ_EX                                          ~19     ~19, ->26
         24    >   BOOL_NOT                                         ~20     !6
         25        BOOL                                             ~19     ~20
         26    >   ASSIGN                                                   !7, ~19
    9    27        INIT_FCALL_BY_NAME                                       'var_dmp'
         28        SEND_VAR_EX                                              !7
         29        DO_FCALL                                      0          
   10    30      > RETURN                                                   null

End of function q6

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.44 ms | 1403 KiB | 22 Q