3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v11 = 11; $v12 = '11f981377'; $v13 = '11'; are_they_equal($v11, $v12); are_they_equal($v12, $v13); are_they_equal($v13, $v11); function are_they_equal($var1, $var2) { var_dump($var1, $var2); echo "$var1 and $var2, are they equal? (y/n)\n"; $equal = 0; if ($var1 == $var2) { echo "== says yes they are equal\n"; } else { echo "== says no they are not equal\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2hOU8
function name:  (null)
number of ops:  16
compiled vars:  !0 = $v11, !1 = $v12, !2 = $v13
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 11
    5     1        ASSIGN                                                   !1, '11f981377'
    6     2        ASSIGN                                                   !2, '11'
    8     3        INIT_FCALL_BY_NAME                                       'are_they_equal'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0          
    9     7        INIT_FCALL_BY_NAME                                       'are_they_equal'
          8        SEND_VAR_EX                                              !1
          9        SEND_VAR_EX                                              !2
         10        DO_FCALL                                      0          
   10    11        INIT_FCALL_BY_NAME                                       'are_they_equal'
         12        SEND_VAR_EX                                              !2
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0          
   26    15      > RETURN                                                   1

Function are_they_equal:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2hOU8
function name:  are_they_equal
number of ops:  18
compiled vars:  !0 = $var1, !1 = $var2, !2 = $equal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   14     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
   15     6        ROPE_INIT                                     4  ~5      !0
          7        ROPE_ADD                                      1  ~5      ~5, '+and+'
          8        ROPE_ADD                                      2  ~5      ~5, !1
          9        ROPE_END                                      3  ~4      ~5, '%2C+are+they+equal%3F+%28y%2Fn%29%0A'
         10        ECHO                                                     ~4
   16    11        ASSIGN                                                   !2, 0
   17    12        IS_EQUAL                                                 !0, !1
         13      > JMPZ                                                     ~8, ->16
   19    14    >   ECHO                                                     '%3D%3D+says+yes+they+are+equal%0A'
         15      > JMP                                                      ->17
   23    16    >   ECHO                                                     '%3D%3D+says+no+they+are+not+equal%0A'
   26    17    > > RETURN                                                   null

End of function are_they_equal

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.29 ms | 1396 KiB | 15 Q