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 = new SomeOtherClass(); if($object === null || $object->isLive()) { die('yay'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/itVDN
function name:  (null)
number of ops:  11
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'SomeOtherClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   23     3        TYPE_CHECK                                    2  ~4      !0
          4      > JMPNZ_EX                                         ~4      ~4, ->8
          5    >   INIT_METHOD_CALL                                         !0, 'isLive'
          6        DO_FCALL                                      0  $5      
          7        BOOL                                             ~4      $5
          8    > > JMPZ                                                     ~4, ->10
   24     9    > > EXIT                                                     'yay'
   25    10    > > RETURN                                                   1

Class SomeClass:
Function islive:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/itVDN
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/itVDN
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:
156.46 ms | 1394 KiB | 13 Q