3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.63 ms | 1397 KiB | 13 Q