3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = (object)array('123' => '456'); print_r($obj); echo $obj->{'123'},"\n"; echo $obj->{123},"\n"; echo property_exists(get_class($obj), $obj->{'123'})? 'true':'false';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BUR4m
function name:  (null)
number of ops:  23
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        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    5     5        FETCH_OBJ_R                                      ~4      !0, '123'
          6        ECHO                                                     ~4
          7        ECHO                                                     '%0A'
    6     8        FETCH_OBJ_R                                      ~5      !0, '123'
          9        ECHO                                                     ~5
         10        ECHO                                                     '%0A'
    7    11        INIT_FCALL                                               'property_exists'
         12        GET_CLASS                                        ~6      !0
         13        SEND_VAL                                                 ~6
         14        FETCH_OBJ_R                                      ~7      !0, '123'
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                         $8      
         17      > JMPZ                                                     $8, ->20
         18    >   QM_ASSIGN                                        ~9      'true'
         19      > JMP                                                      ->21
         20    >   QM_ASSIGN                                        ~9      'false'
         21    >   ECHO                                                     ~9
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.76 ms | 1395 KiB | 17 Q