3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new SplFileObject("data:text/plain,line1\r\nline2\r\nline3", 'r'); for(; $x->valid(); $x->next()) echo $x->key()."$k: ".$x->current();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
Branch analysis from position: 6
filename:       /in/aoC9s
function name:  (null)
number of ops:  21
compiled vars:  !0 = $x, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SplFileObject'
          1        SEND_VAL_EX                                              'data%3Atext%2Fplain%2Cline1%0D%0Aline2%0D%0Aline3'
          2        SEND_VAL_EX                                              'r'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    5     5      > JMP                                                      ->17
    6     6    >   INIT_METHOD_CALL                                         !0, 'key'
          7        DO_FCALL                                      0  $5      
          8        NOP                                                      
          9        FAST_CONCAT                                      ~6      !1, '%3A+'
         10        CONCAT                                           ~7      $5, ~6
         11        INIT_METHOD_CALL                                         !0, 'current'
         12        DO_FCALL                                      0  $8      
         13        CONCAT                                           ~9      ~7, $8
         14        ECHO                                                     ~9
    5    15        INIT_METHOD_CALL                                         !0, 'next'
         16        DO_FCALL                                      0          
         17    >   INIT_METHOD_CALL                                         !0, 'valid'
         18        DO_FCALL                                      0  $11     
         19      > JMPNZ                                                    $11, ->6
    6    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.11 ms | 1393 KiB | 13 Q