3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ao = new ArrayObject; foreach ([1, 2, 3] as $i => $var) { settype($var, 'string'); $ao[$i] = $var; } var_dump($ao);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/suHQh
function name:  (null)
number of ops:  18
compiled vars:  !0 = $ao, !1 = $var, !2 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $3      :31
         1        DO_FCALL                                      0          
         2        QM_ASSIGN                                                !0
   5     3      > FE_RESET_R                                       $6      <array>, ->13
         4    > > FE_FETCH_R                                       ~7      $6, !1, ->13
         5    >   QM_ASSIGN                                                !2
   7     6        INIT_FCALL                                               'settype'
         7        SEND_REF                                                 !1
         8        SEND_VAL                                                 'string'
         9        DO_ICALL                                                 
   8    10        ASSIGN_ADD                                    0          !0, !2
        11        OP_DATA                                                  !1
   5    12      > JMP                                                      ->4
        13    >   FE_FREE                                                  $6
  11    14        INIT_FCALL                                               'var_dump'
        15        SEND_VAR                                                 !0
        16        DO_ICALL                                                 
        17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
66 ms | 411 KiB | 7 Q