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) { ${strstr($column, '.', true)}[] = $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 = 12
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/QLh9b
function name:  (null)
number of ops:  26
compiled vars:  !0 = $sample, !1 = $column, !2 = $a, !3 = $b, !4 = $c, !5 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $7      !0, ->12
          2    > > FE_FETCH_R                                               $7, !1, ->12
    6     3    >   INIT_FCALL                                               'strstr'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 '.'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $8      
          8        FETCH_W                      local               $9      $8
          9        ASSIGN_DIM                                               $9
         10        OP_DATA                                                  !1
    5    11      > JMP                                                      ->2
         12    >   FE_FREE                                                  $7
    9    13        INIT_FCALL                                               'var_export'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
   10    16        INIT_FCALL                                               'var_export'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                                 
   11    19        INIT_FCALL                                               'var_export'
         20        SEND_VAR                                                 !4
         21        DO_ICALL                                                 
   12    22        INIT_FCALL                                               'var_export'
         23        SEND_VAR                                                 !5
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.24 ms | 1014 KiB | 15 Q