3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "1,2,3,4", "1,2,3", "1,2" ]; $threeKeys = ['a', 'b', 'c']; foreach ($strings as $string) { extract(array_combine($threeKeys, explode(',', $string, 3))); var_export($a); echo ' _ '; var_export($b); echo ' _ '; var_export($c); echo "\n-----------------\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 29
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 29
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/XefjM
function name:  (null)
number of ops:  31
compiled vars:  !0 = $strings, !1 = $threeKeys, !2 = $string, !3 = $a, !4 = $b, !5 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
    9     2      > FE_RESET_R                                       $8      !0, ->29
          3    > > FE_FETCH_R                                               $8, !2, ->29
   10     4    >   INIT_FCALL                                               'extract'
          5        INIT_FCALL                                               'array_combine'
          6        SEND_VAR                                                 !1
          7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%2C'
          9        SEND_VAR                                                 !2
         10        SEND_VAL                                                 3
         11        DO_ICALL                                         $9      
         12        SEND_VAR                                                 $9
         13        DO_ICALL                                         $10     
         14        SEND_VAL                                                 $10
         15        DO_ICALL                                                 
   11    16        INIT_FCALL                                               'var_export'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                                 
   12    19        ECHO                                                     '+_+'
   13    20        INIT_FCALL                                               'var_export'
         21        SEND_VAR                                                 !4
         22        DO_ICALL                                                 
   14    23        ECHO                                                     '+_+'
   15    24        INIT_FCALL                                               'var_export'
         25        SEND_VAR                                                 !5
         26        DO_ICALL                                                 
   16    27        ECHO                                                     '%0A-----------------%0A'
    9    28      > JMP                                                      ->3
         29    >   FE_FREE                                                  $8
   17    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.9 ms | 1006 KiB | 17 Q