3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = '/tmp/FOO2AsD16'; file_put_contents($file, ' foo=bar # This line is discarded by all versions of PHP #hashkey=undefined_behaviour ; This is a real comment ;commented_out_key=documented_behaviour baz=quux '); print_r( parse_ini_file($file) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AoI5H
function name:  (null)
number of ops:  12
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Ftmp%2FFOO2AsD16'
    4     1        INIT_FCALL                                               'file_put_contents'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%0Afoo%3Dbar%0A%23+This+line+is+discarded+by+all+versions+of+PHP%0A%23hashkey%3Dundefined_behaviour%0A%3B+This+is+a+real+comment%0A%3Bcommented_out_key%3Ddocumented_behaviour%0Abaz%3Dquux%0A'
          4        DO_ICALL                                                 
   13     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'parse_ini_file'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.78 ms | 1394 KiB | 19 Q