3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = <<<EOF id1 name1 lastname1 age1 birthdate1 id2 name2 lastname2 age2 birthdate2 id3 name3 lastname3 age3 birthdate3 id4 name4 lastname4 age4 birthdate4 EOF; $a1 = explode(' ', $string); foreach($a1 as $v){ $v1 = explode(' ', trim($v)); $r[$v1[0]] = ['name'=>$v1[1],'lastname'=>$v1[2],'age'=>$v1[3],'birthdate'=>$v1[4]]; } print_r($r);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 26
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 26
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/iU4o6
function name:  (null)
number of ops:  31
compiled vars:  !0 = $string, !1 = $a1, !2 = $v, !3 = $v1, !4 = $r
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'id1+name1+lastname1+age1+birthdate1+%0Aid2+name2+lastname2+age2+birthdate2+%0Aid3+name3+lastname3+age3+birthdate3+%0Aid4+name4+lastname4+age4+birthdate4'
   10     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '%0A'
   11     3        SEND_VAR                                                     !0
   10     4        DO_ICALL                                             $6      
          5        ASSIGN                                                       !1, $6
   12     6      > FE_RESET_R                                           $8      !1, ->26
          7    > > FE_FETCH_R                                                   $8, !2, ->26
   13     8    >   INIT_FCALL                                                   'explode'
          9        SEND_VAL                                                     '+'
         10        FRAMELESS_ICALL_1                trim                ~9      !2
         11        SEND_VAL                                                     ~9
         12        DO_ICALL                                             $10     
         13        ASSIGN                                                       !3, $10
   14    14        FETCH_DIM_R                                          ~12     !3, 0
         15        FETCH_DIM_R                                          ~14     !3, 1
         16        INIT_ARRAY                                           ~15     ~14, 'name'
         17        FETCH_DIM_R                                          ~16     !3, 2
         18        ADD_ARRAY_ELEMENT                                    ~15     ~16, 'lastname'
         19        FETCH_DIM_R                                          ~17     !3, 3
         20        ADD_ARRAY_ELEMENT                                    ~15     ~17, 'age'
         21        FETCH_DIM_R                                          ~18     !3, 4
         22        ADD_ARRAY_ELEMENT                                    ~15     ~18, 'birthdate'
         23        ASSIGN_DIM                                                   !4, ~12
         24        OP_DATA                                                      ~15
   12    25      > JMP                                                          ->7
         26    >   FE_FREE                                                      $8
   16    27        INIT_FCALL                                                   'print_r'
         28        SEND_VAR                                                     !4
         29        DO_ICALL                                                     
         30      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.72 ms | 2466 KiB | 17 Q