3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class { }; foreach ($a as $k => $v) { } var_dump($a instanceof Traversable);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/5X987
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <unknown> 
          1        NEW                                              $4      $3
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    5     4      > FE_RESET_R                                       $7      !0, ->8
          5    > > FE_FETCH_R                                       ~8      $7, !1, ->8
          6    >   ASSIGN                                                   !2, ~8
          7      > JMP                                                      ->5
          8    >   FE_FREE                                                  $7
    7     9        INIT_FCALL                                               'var_dump'
         10        INSTANCEOF                                       ~10     !0, 'Traversable'
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.33 ms | 999 KiB | 14 Q