3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_input = 'milk, coffee, tea, biscuit, jam, jelly, nougut'; $results = array_map('trim',explode(',', $user_input)); foreach($results as $result){ ${$result} = $result; } echo $tea; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/mdUdQ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $user_input, !1 = $results, !2 = $result, !3 = $tea
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'milk%2C+coffee%2C+tea%2C+biscuit%2C+jam%2C+jelly%2C+nougut'
    3     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'trim'
          3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%2C'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    4    10      > FE_RESET_R                                       $8      !1, ->15
         11    > > FE_FETCH_R                                               $8, !2, ->15
    5    12    >   FETCH_W                      local               $9      !2
         13        ASSIGN                                                   $9, !2
    4    14      > JMP                                                      ->11
         15    >   FE_FREE                                                  $8
    7    16        ECHO                                                     !3
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.05 ms | 1395 KiB | 17 Q