3v4l.org

run code in 500+ PHP versions simultaneously
<?php class O extends ArrayObject { public function offsetSet($k, $v): void { var_dump(__METHOD__); } } $o = new O(); $o[] = 1; var_dump($o);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AYJjF
function name:  (null)
number of ops:  9
compiled vars:  !0 = $o
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   NEW                                                  $1      'O'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   10     3        ASSIGN_DIM                                                   !0
          4        OP_DATA                                                      1
   11     5        INIT_FCALL                                                   'var_dump'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Class O:
Function offsetset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AYJjF
function name:  offsetSet
number of ops:  6
compiled vars:  !0 = $k, !1 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    5     2        INIT_FCALL                                                   'var_dump'
          3        SEND_VAL                                                     'O%3A%3AoffsetSet'
          4        DO_ICALL                                                     
    6     5      > RETURN                                                       null

End of function offsetset

End of class O.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.49 ms | 1797 KiB | 14 Q