3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass(); $obj->id = 5; $obj->name = "test"; $obj->field = ["hi" => "there", "null" => "welt"]; var_dump((array) $obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B2C5L
function name:  (null)
number of ops:  14
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        ASSIGN_OBJ                                               !0, 'id'
          4        OP_DATA                                                  5
    6     5        ASSIGN_OBJ                                               !0, 'name'
          6        OP_DATA                                                  'test'
    7     7        ASSIGN_OBJ                                               !0, 'field'
          8        OP_DATA                                                  <array>
    9     9        INIT_FCALL                                               'var_dump'
         10        CAST                                          7  ~7      !0
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.53 ms | 1394 KiB | 15 Q