3v4l.org

run code in 500+ PHP versions simultaneously
<?php $file = tempnam('.', 'test'); $fh = fopen($file, 'w+'); fwrite($fh, '[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" '); fclose($fh); // 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/DMEud
function name:  (null)
number of ops:  26
compiled vars:  !0 = $file, !1 = $fh, !2 = $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                                             $3      
          4        ASSIGN                                                       !0, $3
    4     5        INIT_FCALL                                                   'fopen'
          6        SEND_VAR                                                     !0
          7        SEND_VAL                                                     'w%2B'
          8        DO_ICALL                                             $5      
          9        ASSIGN                                                       !1, $5
    5    10        INIT_FCALL                                                   'fwrite'
         11        SEND_VAR                                                     !1
    6    12        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'
    5    13        DO_ICALL                                                     
   21    14        INIT_FCALL                                                   'fclose'
         15        SEND_VAR                                                     !1
         16        DO_ICALL                                                     
   24    17        INIT_FCALL                                                   'parse_ini_file'
         18        SEND_VAR                                                     !0
         19        SEND_VAL                                                     <true>
         20        DO_ICALL                                             $9      
         21        ASSIGN                                                       !2, $9
   25    22        INIT_FCALL                                                   'print_r'
         23        SEND_VAR                                                     !2
         24        DO_ICALL                                                     
         25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.12 ms | 3469 KiB | 19 Q