3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'test'; $data = array(); $data[] = <<<INI [userdata] username=user1 age=15 level=5 INI; $data[] = <<<INI [userdata] username=user2 age=19 level=12 INI; foreach($data as $str) { $result = parse_ini_string($str, true, INI_SCANNER_NORMAL); print_r($result); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/8XUGp
function name:  (null)
number of ops:  20
compiled vars:  !0 = $data, !1 = $str, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'test'
    4     1        ASSIGN                                                   !0, <array>
    5     2        ASSIGN_DIM                                               !0
    6     3        OP_DATA                                                  '%0A%5Buserdata%5D%0Ausername%3Duser1%0Aage%3D15%0Alevel%3D5%0A'
   14     4        ASSIGN_DIM                                               !0
   15     5        OP_DATA                                                  '%0A%5Buserdata%5D%0Ausername%3Duser2%0Aage%3D19%0Alevel%3D12%0A'
   23     6      > FE_RESET_R                                       $6      !0, ->18
          7    > > FE_FETCH_R                                               $6, !1, ->18
   24     8    >   INIT_FCALL                                               'parse_ini_string'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 <true>
         11        SEND_VAL                                                 0
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
   25    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
   23    17      > JMP                                                      ->7
         18    >   FE_FREE                                                  $6
   26    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.67 ms | 1399 KiB | 17 Q