3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DTO { public string $foo; public string $bar; } $dto = new DTO; $dto->bar = 'bar'; echo '"foo" is ' . (isset($dto->foo) ? 'set' : 'not set'); echo "\n\n"; echo '"bar" is ' . (isset($dto->bar) ? 'set' : 'not set');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
Branch analysis from position: 17
filename:       /in/aXQGh
function name:  (null)
number of ops:  21
compiled vars:  !0 = $dto
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'DTO'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        ASSIGN_OBJ                                               !0, 'bar'
          4        OP_DATA                                                  'bar'
   12     5        ISSET_ISEMPTY_PROP_OBJ                                   !0, 'foo'
          6      > JMPZ                                                     ~5, ->9
          7    >   QM_ASSIGN                                        ~6      'set'
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~6      'not+set'
         10    >   CONCAT                                           ~7      '%22foo%22+is+', ~6
         11        ECHO                                                     ~7
   13    12        ECHO                                                     '%0A%0A'
   14    13        ISSET_ISEMPTY_PROP_OBJ                                   !0, 'bar'
         14      > JMPZ                                                     ~8, ->17
         15    >   QM_ASSIGN                                        ~9      'set'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~9      'not+set'
         18    >   CONCAT                                           ~10     '%22bar%22+is+', ~9
         19        ECHO                                                     ~10
         20      > RETURN                                                   1

Class DTO: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.07 ms | 1002 KiB | 13 Q