3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = tempnam(); file_put_contents($file, '[first_section] one = 1 five = 5 animal = BIRD [second_section] path = "/usr/local/bin" URL = "http://www.example.com/~username" [third_section] phpversion[] = "5.0" phpversion[] = "5.1" phpversion[] = "5.2" phpversion[] = "5.3" '); // Parse with sections $ini_array = parse_ini_file($file, true); print_r($ini_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a38K0
function name:  (null)
number of ops:  16
compiled vars:  !0 = $file, !1 = $ini_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'tempnam'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    4     3        INIT_FCALL                                               'file_put_contents'
          4        SEND_VAR                                                 !0
    5     5        SEND_VAL                                                 '%5Bfirst_section%5D%0Aone+%3D+1%0Afive+%3D+5%0Aanimal+%3D+BIRD%0A%0A%5Bsecond_section%5D%0Apath+%3D+%22%2Fusr%2Flocal%2Fbin%22%0AURL+%3D+%22http%3A%2F%2Fwww.example.com%2F%7Eusername%22%0A%0A%5Bthird_section%5D%0Aphpversion%5B%5D+%3D+%225.0%22%0Aphpversion%5B%5D+%3D+%225.1%22%0Aphpversion%5B%5D+%3D+%225.2%22%0Aphpversion%5B%5D+%3D+%225.3%22%0A'
          6        DO_ICALL                                                 
   22     7        INIT_FCALL                                               'parse_ini_file'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
   23    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.29 ms | 1386 KiB | 21 Q