3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ '123.animal=cat', '123.name=fred', '123.food=fish', '345.animal=dog', 'petshop=zoonoria', ]; $ini = parse_ini_string($data); $result = []; foreach ($ini as $key => $value) { echo $key, ' => ', $value, PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/fSLbU
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data, !1 = $ini, !2 = $result, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'parse_ini_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
   12     5        ASSIGN                                                   !2, <array>
   13     6      > FE_RESET_R                                       $9      !1, ->14
          7    > > FE_FETCH_R                                       ~10     $9, !3, ->14
          8    >   ASSIGN                                                   !4, ~10
   14     9        ECHO                                                     !4
         10        ECHO                                                     '+%3D%3E+'
         11        ECHO                                                     !3
         12        ECHO                                                     '%0A'
   13    13      > JMP                                                      ->7
         14    >   FE_FREE                                                  $9
   15    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.85 ms | 1395 KiB | 15 Q