3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = (object)array('123' => '456'); $obj->a = null; print_r($obj); echo $obj->{'123'},"\n"; echo $obj->{123},"\n"; echo property_exists(get_class($obj), $obj->{'123'})? 'true':'false'; echo property_exists(get_class($obj), $obj->a)? 'true':'false';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
Branch analysis from position: 33
filename:       /in/ooqJ2
function name:  (null)
number of ops:  36
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~1      <array>
          1        ASSIGN                                                   !0, ~1
    4     2        ASSIGN_OBJ                                               !0, 'a'
          3        OP_DATA                                                  null
    5     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    6     7        FETCH_OBJ_R                                      ~5      !0, '123'
          8        ECHO                                                     ~5
          9        ECHO                                                     '%0A'
    7    10        FETCH_OBJ_R                                      ~6      !0, '123'
         11        ECHO                                                     ~6
         12        ECHO                                                     '%0A'
    8    13        INIT_FCALL                                               'property_exists'
         14        GET_CLASS                                        ~7      !0
         15        SEND_VAL                                                 ~7
         16        FETCH_OBJ_R                                      ~8      !0, '123'
         17        SEND_VAL                                                 ~8
         18        DO_ICALL                                         $9      
         19      > JMPZ                                                     $9, ->22
         20    >   QM_ASSIGN                                        ~10     'true'
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~10     'false'
         23    >   ECHO                                                     ~10
    9    24        INIT_FCALL                                               'property_exists'
         25        GET_CLASS                                        ~11     !0
         26        SEND_VAL                                                 ~11
         27        FETCH_OBJ_R                                      ~12     !0, 'a'
         28        SEND_VAL                                                 ~12
         29        DO_ICALL                                         $13     
         30      > JMPZ                                                     $13, ->33
         31    >   QM_ASSIGN                                        ~14     'true'
         32      > JMP                                                      ->34
         33    >   QM_ASSIGN                                        ~14     'false'
         34    >   ECHO                                                     ~14
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.8 ms | 1396 KiB | 17 Q