3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = (object)array('123' => '456'); print_r($obj); echo $obj->{123},"\n"; if (!property_exists($obj,'123')) echo 'property 123 does not exist',"\n"; if ($obj->{123} === NULL) echo 'property 123 is null',"\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 16
filename:       /in/nWBhe
function name:  (null)
number of ops:  22
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          8  ~1      <array>
          1        ASSIGN                                                   !0, ~1
    3     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    4     5        FETCH_OBJ_R                                      ~4      !0, '123'
          6        ECHO                                                     ~4
          7        ECHO                                                     '%0A'
    5     8        INIT_FCALL                                               'property_exists'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '123'
         11        DO_ICALL                                         $5      
         12        BOOL_NOT                                         ~6      $5
         13      > JMPZ                                                     ~6, ->16
         14    >   ECHO                                                     'property+123+does+not+exist'
         15        ECHO                                                     '%0A'
    6    16    >   FETCH_OBJ_R                                      ~7      !0, '123'
         17        TYPE_CHECK                                    2          ~7
         18      > JMPZ                                                     ~8, ->21
         19    >   ECHO                                                     'property+123+is+null'
         20        ECHO                                                     '%0A'
         21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.68 ms | 1395 KiB | 17 Q