3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = new stdClass(); $search->Name = new stdClass(); $search->Name->_ = 'test'; $search->Name->MatchType = 'asd'; var_dump((array)$search);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cRoLl
function name:  (null)
number of ops:  18
compiled vars:  !0 = $search
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        NEW                                              $5      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'Name'
          6        OP_DATA                                                  $5
    5     7        FETCH_OBJ_W                                      $7      !0, 'Name'
          8        ASSIGN_OBJ                                               $7, '_'
          9        OP_DATA                                                  'test'
    6    10        FETCH_OBJ_W                                      $9      !0, 'Name'
         11        ASSIGN_OBJ                                               $9, 'MatchType'
         12        OP_DATA                                                  'asd'
    8    13        INIT_FCALL                                               'var_dump'
         14        CAST                                          7  ~11     !0
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.78 ms | 1394 KiB | 15 Q