3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = explode('|', 'Foo Bar|123, Foo Lane|foo@bar.com|123-456-7890'); $keys = ['Name', 'Address' ,'Email', 'Phone']; $result = []; foreach ($data as $k => $v) { $result[] = $keys[$k] . ': ' . $v; } echo implode('<br />', $result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/hlDaa
function name:  (null)
number of ops:  20
compiled vars:  !0 = $data, !1 = $keys, !2 = $result, !3 = $v, !4 = $k
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'explode'
          1        SEND_VAL                                                     '%7C'
          2        SEND_VAL                                                     'Foo+Bar%7C123%2C+Foo+Lane%7Cfoo%40bar.com%7C123-456-7890'
          3        DO_ICALL                                             $5      
          4        ASSIGN                                                       !0, $5
    4     5        ASSIGN                                                       !1, <array>
    6     6        ASSIGN                                                       !2, <array>
    7     7      > FE_RESET_R                                           $9      !0, ->16
          8    > > FE_FETCH_R                                           ~10     $9, !3, ->16
          9    >   ASSIGN                                                       !4, ~10
    8    10        FETCH_DIM_R                                          ~13     !1, !4
         11        CONCAT                                               ~14     ~13, '%3A+'
         12        CONCAT                                               ~15     ~14, !3
         13        ASSIGN_DIM                                                   !2
         14        OP_DATA                                                      ~15
    7    15      > JMP                                                          ->8
         16    >   FE_FREE                                                      $9
   10    17        FRAMELESS_ICALL_2                implode             ~16     '%3Cbr+%2F%3E', !2
         18        ECHO                                                         ~16
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.07 ms | 2116 KiB | 14 Q