3v4l.org

run code in 300+ PHP versions simultaneously
<?php $baz = new StdClass; $baz->{"1"} = true; $foo = (array)$baz; $key = (string)"1"; var_export(isset($foo[$key]) && $foo[$key]==1);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/ovQjL
function name:  (null)
number of ops:  18
compiled vars:  !0 = $baz, !1 = $foo, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN_OBJ                                               !0, '1'
          4        OP_DATA                                                  <true>
    5     5        CAST                                          7  ~7      !0
          6        ASSIGN                                                   !1, ~7
    6     7        CAST                                          6  ~9      '1'
          8        ASSIGN                                                   !2, ~9
    7     9        INIT_FCALL                                               'var_export'
         10        ISSET_ISEMPTY_DIM_OBJ                         0  ~11     !1, !2
         11      > JMPZ_EX                                          ~11     ~11, ->15
         12    >   FETCH_DIM_R                                      ~12     !1, !2
         13        IS_EQUAL                                         ~13     ~12, 1
         14        BOOL                                             ~11     ~13
         15    >   SEND_VAL                                                 ~11
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.73 ms | 1009 KiB | 14 Q