3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=TRUE; $y=1; $z='a'; print almighty_function($x, $y, $z); function almighty_function($x, $y, $z) { if ($y != $z && $x == $y && $x == $z) { return "Success!"; } return "FAIL!"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sWe8T
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, 1
    5     2        ASSIGN                                                   !2, 'a'
    7     3        INIT_FCALL_BY_NAME                                       'almighty_function'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        SEND_VAR_EX                                              !2
          7        DO_FCALL                                      0  $6      
          8        ECHO                                                     $6
   14     9      > RETURN                                                   1

Function almighty_function:
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 = 46) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 7
filename:       /in/sWe8T
function name:  almighty_function
number of ops:  14
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   10     3        IS_NOT_EQUAL                                     ~3      !1, !2
          4      > JMPZ_EX                                          ~3      ~3, ->7
          5    >   IS_EQUAL                                         ~4      !0, !1
          6        BOOL                                             ~3      ~4
          7    > > JMPZ_EX                                          ~3      ~3, ->10
          8    >   IS_EQUAL                                         ~5      !0, !2
          9        BOOL                                             ~3      ~5
         10    > > JMPZ                                                     ~3, ->12
   11    11    > > RETURN                                                   'Success%21'
   13    12    > > RETURN                                                   'FAIL%21'
   14    13*     > RETURN                                                   null

End of function almighty_function

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.11 ms | 1386 KiB | 13 Q