3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $array = array(0 => 'strlen', 1 => 'md5'); } $a = new test(); echo $a->array[0]('test'); echo " "; echo $a->array[1]('test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O204u
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        FETCH_OBJ_R                                      ~4      !0, 'array'
          4        FETCH_DIM_R                                      ~5      ~4, 0
          5        INIT_DYNAMIC_CALL                                        ~5
          6        SEND_VAL_EX                                              'test'
          7        DO_FCALL                                      0  $6      
          8        ECHO                                                     $6
   11     9        ECHO                                                     '+'
   12    10        FETCH_OBJ_R                                      ~7      !0, 'array'
         11        FETCH_DIM_R                                      ~8      ~7, 1
         12        INIT_DYNAMIC_CALL                                        ~8
         13        SEND_VAL_EX                                              'test'
         14        DO_FCALL                                      0  $9      
         15        ECHO                                                     $9
         16      > RETURN                                                   1

Class test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.09 ms | 1393 KiB | 13 Q