3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.74 ms | 1396 KiB | 17 Q