3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class voEmail { const EMAIL = "me@where.com"; function getEmail(){ return self::EMAIL; } } $vo = new voEmail; echo $vo->getEmail(),"\n"; $vo2 = new voEmail; echo $vo == $vo2,"\n"; echo $vo === $vo2? 'true':'false',"\n"; echo $vo::EMAIL === $vo2::EMAIL? 'true':'false',"\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
Branch analysis from position: 28
filename:       /in/9TUc0
function name:  (null)
number of ops:  32
compiled vars:  !0 = $vo, !1 = $vo2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'voEmail'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        INIT_METHOD_CALL                                         !0, 'getEmail'
          4        DO_FCALL                                      0  $5      
          5        ECHO                                                     $5
          6        ECHO                                                     '%0A'
   12     7        NEW                                              $6      'voEmail'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
   13    10        IS_EQUAL                                         ~9      !0, !1
         11        ECHO                                                     ~9
         12        ECHO                                                     '%0A'
   14    13        IS_IDENTICAL                                             !0, !1
         14      > JMPZ                                                     ~10, ->17
         15    >   QM_ASSIGN                                        ~11     'true'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~11     'false'
         18    >   ECHO                                                     ~11
         19        ECHO                                                     '%0A'
   15    20        FETCH_CLASS                                   0  $12     !0
         21        FETCH_CLASS_CONSTANT                             ~13     $12, 'EMAIL'
         22        FETCH_CLASS                                   0  $14     !1
         23        FETCH_CLASS_CONSTANT                             ~15     $14, 'EMAIL'
         24        IS_IDENTICAL                                             ~13, ~15
         25      > JMPZ                                                     ~16, ->28
         26    >   QM_ASSIGN                                        ~17     'true'
         27      > JMP                                                      ->29
         28    >   QM_ASSIGN                                        ~17     'false'
         29    >   ECHO                                                     ~17
         30        ECHO                                                     '%0A'
         31      > RETURN                                                   1

Class voEmail:
Function getemail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9TUc0
function name:  getEmail
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   'me%40where.com'
    7     1*     > RETURN                                                   null

End of function getemail

End of class voEmail.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.68 ms | 1399 KiB | 13 Q