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().": ".$x->current();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
Branch analysis from position: 6
filename:       /in/E8HL8
function name:  (null)
number of ops:  19
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      '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, $1
    5     5      > JMP                                                      ->15
    6     6    >   INIT_METHOD_CALL                                         !0, 'key'
          7        DO_FCALL                                      0  $4      
          8        CONCAT                                           ~5      $4, '%3A+'
          9        INIT_METHOD_CALL                                         !0, 'current'
         10        DO_FCALL                                      0  $6      
         11        CONCAT                                           ~7      ~5, $6
         12        ECHO                                                     ~7
    5    13        INIT_METHOD_CALL                                         !0, 'next'
         14        DO_FCALL                                      0          
         15    >   INIT_METHOD_CALL                                         !0, 'valid'
         16        DO_FCALL                                      0  $9      
         17      > JMPNZ                                                    $9, ->6
    6    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.4 ms | 1394 KiB | 13 Q