3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myString = "Adam.::|::.Bob.::|::.Bill"; $kaboom = explode(".::|::.", $myString); // Use a custom unique delimiter foreach ($kaboom as $key => $value) { echo "$value - is in the array at index $key<br />"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/FVI7B
function name:  (null)
number of ops:  17
compiled vars:  !0 = $myString, !1 = $kaboom, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Adam.%3A%3A%7C%3A%3A.Bob.%3A%3A%7C%3A%3A.Bill'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.%3A%3A%7C%3A%3A.'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6      > FE_RESET_R                                       $7      !1, ->15
          7    > > FE_FETCH_R                                       ~8      $7, !2, ->15
          8    >   ASSIGN                                                   !3, ~8
    5     9        ROPE_INIT                                     4  ~11     !2
         10        ROPE_ADD                                      1  ~11     ~11, '+-+is+in+the+array+at+index+'
         11        ROPE_ADD                                      2  ~11     ~11, !3
         12        ROPE_END                                      3  ~10     ~11, '%3Cbr+%2F%3E'
         13        ECHO                                                     ~10
    4    14      > JMP                                                      ->7
         15    >   FE_FREE                                                  $7
    7    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.39 ms | 1395 KiB | 15 Q