3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DataStruct{ public $first = 'Test'; public $second = 12; public $third = false; public $forth = '0xa'; public $fifth = null; } $obj = new DataStruct(); $data = array_keys((array) $obj,0); print_r($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JJ0Kd
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'DataStruct'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        INIT_FCALL                                               'array_keys'
          4        CAST                                          7  ~5      !0
          5        SEND_VAL                                                 ~5
          6        SEND_VAL                                                 0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
   12     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class DataStruct: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.47 ms | 1394 KiB | 17 Q