3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = tempnam('.', 'test'); 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/HqGR1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $file, !1 = $ini_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'tempnam'
          1        SEND_VAL                                                 '.'
          2        SEND_VAL                                                 'test'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'file_put_contents'
          6        SEND_VAR                                                 !0
    5     7        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'
          8        DO_ICALL                                                 
   22     9        INIT_FCALL                                               'parse_ini_file'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
   23    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.34 ms | 1386 KiB | 21 Q