3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new StdClass(); $a->{'0'} = 'a'; $a->{'1'} = 'a'; $a = (array)$a; foreach ($a as $b) echo gettype($b)."\t";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/ikQ0g
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        ASSIGN_OBJ                                               !0, '0'
          4        OP_DATA                                                  'a'
    4     5        ASSIGN_OBJ                                               !0, '1'
          6        OP_DATA                                                  'a'
    5     7        CAST                                          7  ~7      !0
          8        ASSIGN                                                   !0, ~7
    7     9      > FE_RESET_R                                       $9      !0, ->15
         10    > > FE_FETCH_R                                               $9, !1, ->15
         11    >   GET_TYPE                                         ~10     !1
         12        CONCAT                                           ~11     ~10, '%09'
         13        ECHO                                                     ~11
         14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.96 ms | 1394 KiB | 13 Q