3v4l.org

run code in 500+ PHP versions simultaneously
<?php class y{ public string $y; public function __construct(bool $b){ if($b){ $this->y = "hello"; } if(!isset($this->y)){ $this->y = "goodbye"; } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lEbfg
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                       1

Class y:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 4
filename:       /in/lEbfg
function name:  __construct
number of ops:  10
compiled vars:  !0 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
    6     1      > JMPZ                                                         !0, ->4
    7     2    >   ASSIGN_OBJ                                                   'y'
          3        OP_DATA                                                      'hello'
   10     4    >   ISSET_ISEMPTY_PROP_OBJ                               ~2      'y'
          5        BOOL_NOT                                             ~3      ~2
          6      > JMPZ                                                         ~3, ->9
   11     7    >   ASSIGN_OBJ                                                   'y'
          8        OP_DATA                                                      'goodbye'
   13     9    > > RETURN                                                       null

End of function __construct

End of class y.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
195.93 ms | 1266 KiB | 8 Q