3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AA implements ArrayAccess { public function __set($key, $value) { echo "set $key = $value<br>"; } } $aa = new AA(); $aa['test'] = 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/98e14
function name:  (null)
number of ops:  7
compiled vars:  !0 = $aa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'aa'
    8     1        NEW                                              $1      'AA'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    9     4        ASSIGN_DIM                                               !0, 'test'
          5        OP_DATA                                                  1
          6      > RETURN                                                   1

Class AA:
Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/98e14
function name:  __set
number of ops:  9
compiled vars:  !0 = $key, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ROPE_INIT                                     5  ~3      'set+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_ADD                                      2  ~3      ~3, '+%3D+'
          5        ROPE_ADD                                      3  ~3      ~3, !1
          6        ROPE_END                                      4  ~2      ~3, '%3Cbr%3E'
          7        ECHO                                                     ~2
    5     8      > RETURN                                                   null

End of function __set

End of class AA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.6 ms | 1394 KiB | 13 Q