3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeClass { public function isLive() { return true; } } // Dicky class class SomeOtherClass { // Dicky logic public function isNotLive() { return false; } } $object = null; //new SomeClass(); if($object !== null || $object->isLive()) { echo '||'; } if($object !== null && $object->isLive()) { echo '&&'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
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
Branch analysis from position: 13
Branch analysis from position: 8
Branch analysis from position: 6
filename:       /in/AskG4
function name:  (null)
number of ops:  16
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ASSIGN                                                   !0, null
   23     1        TYPE_CHECK                                  1020  ~2      !0
          2      > JMPNZ_EX                                         ~2      ~2, ->6
          3    >   INIT_METHOD_CALL                                         !0, 'isLive'
          4        DO_FCALL                                      0  $3      
          5        BOOL                                             ~2      $3
          6    > > JMPZ                                                     ~2, ->8
   24     7    >   ECHO                                                     '%7C%7C'
   27     8    >   TYPE_CHECK                                  1020  ~4      !0
          9      > JMPZ_EX                                          ~4      ~4, ->13
         10    >   INIT_METHOD_CALL                                         !0, 'isLive'
         11        DO_FCALL                                      0  $5      
         12        BOOL                                             ~4      $5
         13    > > JMPZ                                                     ~4, ->15
   28    14    >   ECHO                                                     '%26%26'
   29    15    > > RETURN                                                   1

Class SomeClass:
Function islive:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AskG4
function name:  isLive
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   <true>
    8     1*     > RETURN                                                   null

End of function islive

End of class SomeClass.

Class SomeOtherClass:
Function isnotlive:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AskG4
function name:  isNotLive
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   <false>
   18     1*     > RETURN                                                   null

End of function isnotlive

End of class SomeOtherClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.47 ms | 1395 KiB | 13 Q