3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = tmpnam('/tmp', 'blop_prefix'); file_put_contents($filename, 'Some line.' . "\r\n"); if ($input_list = file($filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) !== false) { var_dump($input_list); } else { print 'Bad'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SZhmC
function name:  (null)
number of ops:  22
compiled vars:  !0 = $filename, !1 = $input_list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'tmpnam'
          1        SEND_VAL_EX                                              '%2Ftmp'
          2        SEND_VAL_EX                                              'blop_prefix'
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    3     5        INIT_FCALL                                               'file_put_contents'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'Some+line.%0D%0A'
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'file'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 6
         12        DO_ICALL                                         $5      
         13        TYPE_CHECK                                  1018  ~6      $5
         14        ASSIGN                                           ~7      !1, ~6
         15      > JMPZ                                                     ~7, ->20
    5    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > JMP                                                      ->21
    7    20    >   ECHO                                                     'Bad'
    8    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.64 ms | 1395 KiB | 19 Q