3v4l.org

run code in 300+ PHP versions simultaneously
<?php $st = new stdClass(); $st->t = new stdClass(); if (empty($st->t)) echo '1'; if (empty($st->t->r)) echo 2; if (empty($st->r)) echo 3;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 14
Branch analysis from position: 10
filename:       /in/m59Ij
function name:  (null)
number of ops:  18
compiled vars:  !0 = $st
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        NEW                                              $5      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 't'
          6        OP_DATA                                                  $5
    5     7        ISSET_ISEMPTY_PROP_OBJ                                   !0, 't'
          8      > JMPZ                                                     ~7, ->10
          9    >   ECHO                                                     '1'
    6    10    >   FETCH_OBJ_IS                                     ~8      !0, 't'
         11        ISSET_ISEMPTY_PROP_OBJ                                   ~8, 'r'
         12      > JMPZ                                                     ~9, ->14
         13    >   ECHO                                                     2
    7    14    >   ISSET_ISEMPTY_PROP_OBJ                                   !0, 'r'
         15      > JMPZ                                                     ~10, ->17
         16    >   ECHO                                                     3
         17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.84 ms | 1394 KiB | 13 Q