3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sample = array('a.col1','a.col2','b.col1','c.col1','c.col2','d.col5'); foreach ($sample as $column) { [$alias, $column] = explode('.', $column, 2); $$alias[] = $column; } var_export($a); var_export($b); var_export($c); var_export($d);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/8Cjb8
function name:  (null)
number of ops:  31
compiled vars:  !0 = $sample, !1 = $column, !2 = $alias, !3 = $a, !4 = $b, !5 = $c, !6 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $8      !0, ->17
          2    > > FE_FETCH_R                                               $8, !1, ->17
    6     3    >   INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '.'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $9      
          8        FETCH_LIST_R                                     $10     $9, 0
          9        ASSIGN                                                   !2, $10
         10        FETCH_LIST_R                                     $12     $9, 1
         11        ASSIGN                                                   !1, $12
         12        FREE                                                     $9
    7    13        FETCH_W                      local               $14     !2
         14        ASSIGN_DIM                                               $14
         15        OP_DATA                                                  !1
    5    16      > JMP                                                      ->2
         17    >   FE_FREE                                                  $8
   10    18        INIT_FCALL                                               'var_export'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
   11    21        INIT_FCALL                                               'var_export'
         22        SEND_VAR                                                 !4
         23        DO_ICALL                                                 
   12    24        INIT_FCALL                                               'var_export'
         25        SEND_VAR                                                 !5
         26        DO_ICALL                                                 
   13    27        INIT_FCALL                                               'var_export'
         28        SEND_VAR                                                 !6
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
246.79 ms | 1015 KiB | 15 Q