3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all_lines = file('http://www.example.com/'); foreach ($all_lines as $line_num => $line) { echo "Line No.-{$line_num}: " . htmlspecialchars($line) . "<br />\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/23kcn
function name:  (null)
number of ops:  19
compiled vars:  !0 = $all_lines, !1 = $line, !2 = $line_num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.example.com%2F'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4      > FE_RESET_R                                       $5      !0, ->17
          5    > > FE_FETCH_R                                       ~6      $5, !1, ->17
          6    >   ASSIGN                                                   !2, ~6
    5     7        ROPE_INIT                                     3  ~9      'Line+No.-'
          8        ROPE_ADD                                      1  ~9      ~9, !2
          9        ROPE_END                                      2  ~8      ~9, '%3A+'
         10        INIT_FCALL                                               'htmlspecialchars'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $11     
         13        CONCAT                                           ~12     ~8, $11
         14        CONCAT                                           ~13     ~12, '%3Cbr+%2F%3E%0A'
         15        ECHO                                                     ~13
    3    16      > JMP                                                      ->5
         17    >   FE_FREE                                                  $5
    6    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.9 ms | 1395 KiB | 17 Q