3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uri='http://www.yodlecareers.com/puzzles/triangle.txt'; //$uri='input.txt'; //$file = fopen($uri,'r'); //var_dump($file);die; $rows = file($uri, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); echo count($rows)."\n\n"; var_dump($rows[4]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KuhdY
function name:  (null)
number of ops:  14
compiled vars:  !0 = $uri, !1 = $rows
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.yodlecareers.com%2Fpuzzles%2Ftriangle.txt'
    9     1        INIT_FCALL                                               'file'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 6
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   10     6        COUNT                                            ~5      !1
          7        CONCAT                                           ~6      ~5, '%0A%0A'
          8        ECHO                                                     ~6
   11     9        INIT_FCALL                                               'var_dump'
         10        FETCH_DIM_R                                      ~7      !1, 4
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.33 ms | 1385 KiB | 17 Q