3v4l.org

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

Function almighty_function:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 19
filename:       /in/U9D69
function name:  almighty_function
number of ops:  26
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    3     3        INIT_FCALL                                               'var_dump'
          4        IS_NOT_EQUAL                                     ~3      !1, !2
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        IS_EQUAL                                         ~5      !0, !1
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'var_dump'
         12        IS_EQUAL                                         ~7      !0, !2
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
    6    15        IS_NOT_EQUAL                                     ~9      !1, !2
         16      > JMPZ_EX                                          ~9      ~9, ->19
         17    >   IS_EQUAL                                         ~10     !0, !1
         18        BOOL                                             ~9      ~10
         19    > > JMPZ_EX                                          ~9      ~9, ->22
         20    >   IS_EQUAL                                         ~11     !0, !2
         21        BOOL                                             ~9      ~11
         22    > > JMPZ                                                     ~9, ->24
    7    23    > > RETURN                                                   'Success%21'
    9    24    > > RETURN                                                   'FAIL%21'
   10    25*     > RETURN                                                   null

End of function almighty_function

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.28 ms | 1399 KiB | 16 Q