3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new SplFileObject('http://www.stackoverflow.com/'); $norewind = new NoRewindIterator($obj); $caching = new CachingIterator($norewind); $limit = new LimitIterator($caching, 80, 30); foreach ($limit as $i => $line) { printf("%03d: %s", $i, $line); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 27
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 27
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/PqvoK
function name:  (null)
number of ops:  29
compiled vars:  !0 = $obj, !1 = $norewind, !2 = $caching, !3 = $limit, !4 = $line, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $6      'SplFileObject'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fwww.stackoverflow.com%2F'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $6
    4     4        NEW                                              $9      'NoRewindIterator'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $9
    5     8        NEW                                              $12     'CachingIterator'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $12
    6    12        NEW                                              $15     'LimitIterator'
         13        SEND_VAR_EX                                              !2
         14        SEND_VAL_EX                                              80
         15        SEND_VAL_EX                                              30
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !3, $15
    8    18      > FE_RESET_R                                       $18     !3, ->27
         19    > > FE_FETCH_R                                       ~19     $18, !4, ->27
         20    >   ASSIGN                                                   !5, ~19
   10    21        INIT_FCALL                                               'printf'
         22        SEND_VAL                                                 '%2503d%3A+%25s'
         23        SEND_VAR                                                 !5
         24        SEND_VAR                                                 !4
         25        DO_ICALL                                                 
    8    26      > JMP                                                      ->19
         27    >   FE_FREE                                                  $18
   11    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.43 ms | 1396 KiB | 15 Q