3v4l.org

run code in 300+ 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 = 28
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 28
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/iU4o6
function name:  (null)
number of ops:  33
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, ->28
          7    > > FE_FETCH_R                                               $8, !2, ->28
   13     8    >   INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '+'
         10        INIT_FCALL                                               'trim'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
   14    16        FETCH_DIM_R                                      ~12     !3, 0
         17        FETCH_DIM_R                                      ~14     !3, 1
         18        INIT_ARRAY                                       ~15     ~14, 'name'
         19        FETCH_DIM_R                                      ~16     !3, 2
         20        ADD_ARRAY_ELEMENT                                ~15     ~16, 'lastname'
         21        FETCH_DIM_R                                      ~17     !3, 3
         22        ADD_ARRAY_ELEMENT                                ~15     ~17, 'age'
         23        FETCH_DIM_R                                      ~18     !3, 4
         24        ADD_ARRAY_ELEMENT                                ~15     ~18, 'birthdate'
         25        ASSIGN_DIM                                               !4, ~12
         26        OP_DATA                                                  ~15
   12    27      > JMP                                                      ->7
         28    >   FE_FREE                                                  $8
   16    29        INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !4
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.64 ms | 1005 KiB | 16 Q