3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new STDClass(); $a->aa = "bb"; $a->aaa = "bbb"; print_r($a); print_r((array)$a); print_r(get_object_vars($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sQdsT
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a
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, 'aa'
          4        OP_DATA                                                  'bb'
    5     5        ASSIGN_OBJ                                               !0, 'aaa'
          6        OP_DATA                                                  'bbb'
    7     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'print_r'
         11        CAST                                          7  ~7      !0
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
   11    14        INIT_FCALL                                               'print_r'
         15        INIT_FCALL                                               'get_object_vars'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.2 ms | 1399 KiB | 17 Q