3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = (object)array('123' => '456'); print_r($obj); if (!property_exists($obj,'123')) echo 'property 123 does not exist',"\n"; if ( !isset( $obj->{'123'} ) ) echo 'property 123 is null',"\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 13
filename:       /in/5qP9h
function name:  (null)
number of ops:  19
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        INIT_FCALL                                               'property_exists'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 '123'
          8        DO_ICALL                                         $4      
          9        BOOL_NOT                                         ~5      $4
         10      > JMPZ                                                     ~5, ->13
         11    >   ECHO                                                     'property+123+does+not+exist'
         12        ECHO                                                     '%0A'
    5    13    >   ISSET_ISEMPTY_PROP_OBJ                           ~6      !0, '123'
         14        BOOL_NOT                                         ~7      ~6
         15      > JMPZ                                                     ~7, ->18
         16    >   ECHO                                                     'property+123+is+null'
         17        ECHO                                                     '%0A'
         18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.66 ms | 1395 KiB | 17 Q