3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ifTrueAndStringTrueIsTrueReturnStringFalseIfFalseAndStringTrueReturnStringFalseIfTrueAndStringFalseReturnStringTrueIfFalseAndStringTrueReturnStringTrue($bool,$string1,$string2) { if ($bool != false && $string != false) { return "false"; } if ($bool != false && $string != true) { return "false"; } if ($bool != true && $string != false) { return "true"; } if ($bool != true && $string != true) { return "true"; } return "uh oh, it failed"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0AD2W
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   1

Function iftrueandstringtrueistruereturnstringfalseiffalseandstringtruereturnstringfalseiftrueandstringfalsereturnstringtrueiffalseandstringtruereturnstringtrue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 46) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 27
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 19
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/0AD2W
function name:  ifTrueAndStringTrueIsTrueReturnStringFalseIfFalseAndStringTrueReturnStringFalseIfTrueAndStringFalseReturnStringTrueIfFalseAndStringTrueReturnStringTrue
number of ops:  29
compiled vars:  !0 = $bool, !1 = $string1, !2 = $string2, !3 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        BOOL                                             ~4      !0
          4      > JMPZ_EX                                          ~4      ~4, ->7
          5    >   BOOL                                             ~5      !3
          6        BOOL                                             ~4      ~5
          7    > > JMPZ                                                     ~4, ->9
    5     8    > > RETURN                                                   'false'
    7     9    >   BOOL                                             ~6      !0
         10      > JMPZ_EX                                          ~6      ~6, ->13
         11    >   BOOL_NOT                                         ~7      !3
         12        BOOL                                             ~6      ~7
         13    > > JMPZ                                                     ~6, ->15
    8    14    > > RETURN                                                   'false'
   10    15    >   BOOL_NOT                                         ~8      !0
         16      > JMPZ_EX                                          ~8      ~8, ->19
         17    >   BOOL                                             ~9      !3
         18        BOOL                                             ~8      ~9
         19    > > JMPZ                                                     ~8, ->21
   11    20    > > RETURN                                                   'true'
   13    21    >   BOOL_NOT                                         ~10     !0
         22      > JMPZ_EX                                          ~10     ~10, ->25
         23    >   BOOL_NOT                                         ~11     !3
         24        BOOL                                             ~10     ~11
         25    > > JMPZ                                                     ~10, ->27
   14    26    > > RETURN                                                   'true'
   16    27    > > RETURN                                                   'uh+oh%2C+it+failed'
   17    28*     > RETURN                                                   null

End of function iftrueandstringtrueistruereturnstringfalseiffalseandstringtruereturnstringfalseiftrueandstringfalsereturnstringtrueiffalseandstringtruereturnstringtrue

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.67 ms | 1399 KiB | 13 Q