3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Customer { private $test1; private $test2; function __construct() { } } $object = new Customer(); $arr = (array)$object; print_r(array_map("addslashes", array_keys($arr)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/au0ON
function name:  (null)
number of ops:  16
compiled vars:  !0 = $object, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'Customer'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    8     3        CAST                                          7  ~5      !0
          4        ASSIGN                                                   !1, ~5
    9     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'array_map'
          7        SEND_VAL                                                 'addslashes'
          8        INIT_FCALL                                               'array_keys'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                         $8      
         13        SEND_VAR                                                 $8
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class Customer:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/au0ON
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null

End of function __construct

End of class Customer.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.33 ms | 1399 KiB | 19 Q