3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stack = new SplStack(); $stack->push(13); $stack->push(17); $stack->push(19); foreach($stack as $item) { var_dump($item); } foreach($stack as $item) { var_dump($item); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 25
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 18
filename:       /in/Cm8M5
function name:  (null)
number of ops:  27
compiled vars:  !0 = $stack, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SplStack'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        INIT_METHOD_CALL                                         !0, 'push'
          4        SEND_VAL_EX                                              13
          5        DO_FCALL                                      0          
    6     6        INIT_METHOD_CALL                                         !0, 'push'
          7        SEND_VAL_EX                                              17
          8        DO_FCALL                                      0          
    7     9        INIT_METHOD_CALL                                         !0, 'push'
         10        SEND_VAL_EX                                              19
         11        DO_FCALL                                      0          
    9    12      > FE_RESET_R                                       $8      !0, ->18
         13    > > FE_FETCH_R                                               $8, !1, ->18
   11    14    >   INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
    9    17      > JMP                                                      ->13
         18    >   FE_FREE                                                  $8
   14    19      > FE_RESET_R                                       $10     !0, ->25
         20    > > FE_FETCH_R                                               $10, !1, ->25
   16    21    >   INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
   14    24      > JMP                                                      ->20
         25    >   FE_FREE                                                  $10
   17    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.52 ms | 1396 KiB | 15 Q