3v4l.org

run code in 500+ PHP versions simultaneously
<?php class h extends stdClass { public $data = array(); function __set($name, $val) { $this->data[$name] = $val; } function __debugInfo() { return $this->data; } } $cl = new h(); $id = "373556941768884244"; $cl->$id = 'hallo'; var_dump($cl);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uiPv8
function name:  (null)
number of ops:  10
compiled vars:  !0 = $cl, !1 = $id
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   NEW                                                  $2      'h'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
   17     3        ASSIGN                                                       !1, '373556941768884244'
   18     4        ASSIGN_OBJ                                                   !0, !1
          5        OP_DATA                                                      'hallo'
   20     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Class h:
Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uiPv8
function name:  __set
number of ops:  6
compiled vars:  !0 = $name, !1 = $val
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    7     2        FETCH_OBJ_W                                          $2      'data'
          3        ASSIGN_DIM                                                   $2, !0
          4        OP_DATA                                                      !1
    8     5      > RETURN                                                       null

End of function __set

Function __debuginfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uiPv8
function name:  __debugInfo
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                          ~0      'data'
          1      > RETURN                                                       ~0
   12     2*     > RETURN                                                       null

End of function __debuginfo

End of class h.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.64 ms | 2558 KiB | 14 Q