3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = array( "Hello", "Hello | world", "Hello | My | Lovely | World" ); foreach($in as $test){ list($one,$two) = explode(" | ", $test, 2); print_r(array($one, $two)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 19
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/Uqdh8
function name:  (null)
number of ops:  21
compiled vars:  !0 = $in, !1 = $test, !2 = $one, !3 = $two
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1      > FE_RESET_R                                       $5      !0, ->19
          2    > > FE_FETCH_R                                               $5, !1, ->19
   10     3    >   INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '+%7C+'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $6      
          8        FETCH_LIST_R                                     $7      $6, 0
          9        ASSIGN                                                   !2, $7
         10        FETCH_LIST_R                                     $9      $6, 1
         11        ASSIGN                                                   !3, $9
         12        FREE                                                     $6
   11    13        INIT_FCALL                                               'print_r'
         14        INIT_ARRAY                                       ~11     !2
         15        ADD_ARRAY_ELEMENT                                ~11     !3
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                                 
    9    18      > JMP                                                      ->2
         19    >   FE_FREE                                                  $5
   12    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.7 ms | 1395 KiB | 17 Q