3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( version_compare(PHP_VERSION, '8.1.0') < 0 ) { ini_set("auto_detect_line_endings", true); } $nl = "\r"; $lastnl = "\r\n"; $text = "field1;field2$nl" . "Jean-Louis s'est fait;mordre par un ragondin.$nl" . "Claudette mange de la;choucroute en cachette.$nl" . "Bogdan joue à Hippo-Glouton;avec son cousin.$lastnl"; $URI = 'data://text/plain;base64,' . base64_encode($text); $lines = file($URI, FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES); var_dump($lines);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/lM8J0
function name:  (null)
number of ops:  38
compiled vars:  !0 = $nl, !1 = $lastnl, !2 = $text, !3 = $URI, !4 = $lines
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.3.0'
          2        SEND_VAL                                                 '8.1.0'
          3        DO_ICALL                                         $5      
          4        IS_SMALLER                                               $5, 0
          5      > JMPZ                                                     ~6, ->10
    4     6    >   INIT_FCALL                                               'ini_set'
          7        SEND_VAL                                                 'auto_detect_line_endings'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                                 
    7    10    >   ASSIGN                                                   !0, '%0D'
    8    11        ASSIGN                                                   !1, '%0D%0A'
   10    12        NOP                                                      
         13        FAST_CONCAT                                      ~10     'field1%3Bfield2', !0
   11    14        NOP                                                      
         15        FAST_CONCAT                                      ~11     'Jean-Louis+s%27est+fait%3Bmordre+par+un+ragondin.', !0
         16        CONCAT                                           ~12     ~10, ~11
   12    17        NOP                                                      
         18        FAST_CONCAT                                      ~13     'Claudette+mange+de+la%3Bchoucroute+en+cachette.', !0
         19        CONCAT                                           ~14     ~12, ~13
   13    20        NOP                                                      
         21        FAST_CONCAT                                      ~15     'Bogdan+joue+%C3%A0+Hippo-Glouton%3Bavec+son+cousin.', !1
         22        CONCAT                                           ~16     ~14, ~15
   10    23        ASSIGN                                                   !2, ~16
   15    24        INIT_FCALL                                               'base64_encode'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $18     
         27        CONCAT                                           ~19     'data%3A%2F%2Ftext%2Fplain%3Bbase64%2C', $18
         28        ASSIGN                                                   !3, ~19
   17    29        INIT_FCALL                                               'file'
         30        SEND_VAR                                                 !3
         31        SEND_VAL                                                 6
         32        DO_ICALL                                         $21     
         33        ASSIGN                                                   !4, $21
   19    34        INIT_FCALL                                               'var_dump'
         35        SEND_VAR                                                 !4
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.65 ms | 1003 KiB | 18 Q