3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Model { } class Metadata { } $model = new Model(); $info = new Metadata(); $info->lastUpdated = 'foo'; $model->_info = $info; var_dump(! (isset($model->_info) && isset($model->_info->lastUpdated2)));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/cREZi
function name:  (null)
number of ops:  20
compiled vars:  !0 = $model, !1 = $info
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'Model'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        NEW                                              $5      'Metadata'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   14     6        ASSIGN_OBJ                                               !1, 'lastUpdated'
          7        OP_DATA                                                  'foo'
   15     8        ASSIGN_OBJ                                               !0, '_info'
          9        OP_DATA                                                  !1
   17    10        INIT_FCALL                                               'var_dump'
         11        ISSET_ISEMPTY_PROP_OBJ                           ~10     !0, '_info'
         12      > JMPZ_EX                                          ~10     ~10, ->16
         13    >   FETCH_OBJ_IS                                     ~11     !0, '_info'
         14        ISSET_ISEMPTY_PROP_OBJ                           ~12     ~11, 'lastUpdated2'
         15        BOOL                                             ~10     ~12
         16    >   BOOL_NOT                                         ~13     ~10
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Class Model: [no user functions]
Class Metadata: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.05 ms | 1395 KiB | 15 Q