3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog{ public $name; } $D = new Dog(); $arr = []; $arr['n'] = $D->name; $res = $arr['n'] == ''; var_dump($res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cglbC
function name:  (null)
number of ops:  14
compiled vars:  !0 = $D, !1 = $arr, !2 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $3      'Dog'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    8     3        ASSIGN                                                   !1, <array>
    9     4        FETCH_OBJ_R                                      ~8      !0, 'name'
          5        ASSIGN_DIM                                               !1, 'n'
          6        OP_DATA                                                  ~8
   11     7        FETCH_DIM_R                                      ~9      !1, 'n'
          8        IS_EQUAL                                         ~10     ~9, ''
          9        ASSIGN                                                   !2, ~10
   12    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class Dog: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.61 ms | 1394 KiB | 15 Q