3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X extends ArrayObject { public function first() { return $this[0]; } } $array = new X(); $array[] = 'ciao!!!!!!!'; $array[] = 'hello'; echo $array->first();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bHjr9
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'X'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  'ciao%21%21%21%21%21%21%21'
   13     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  'hello'
   16     7        INIT_METHOD_CALL                                         !0, 'first'
          8        DO_FCALL                                      0  $6      
          9        ECHO                                                     $6
         10      > RETURN                                                   1

Class X:
Function first:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bHjr9
function name:  first
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_THIS                                       ~0      
          1        FETCH_DIM_R                                      ~1      ~0, 0
          2      > RETURN                                                   ~1
    7     3*     > RETURN                                                   null

End of function first

End of class X.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.97 ms | 1393 KiB | 13 Q