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)); } foreach($in as $test){ list($one,$two) = explode(" | ", $test); 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
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 37
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 37
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 19
filename:       /in/JcSPp
function name:  (null)
number of ops:  39
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
   14    20      > FE_RESET_R                                       $13     !0, ->37
         21    > > FE_FETCH_R                                               $13, !1, ->37
   15    22    >   INIT_FCALL                                               'explode'
         23        SEND_VAL                                                 '+%7C+'
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                         $14     
         26        FETCH_LIST_R                                     $15     $14, 0
         27        ASSIGN                                                   !2, $15
         28        FETCH_LIST_R                                     $17     $14, 1
         29        ASSIGN                                                   !3, $17
         30        FREE                                                     $14
   16    31        INIT_FCALL                                               'print_r'
         32        INIT_ARRAY                                       ~19     !2
         33        ADD_ARRAY_ELEMENT                                ~19     !3
         34        SEND_VAL                                                 ~19
         35        DO_ICALL                                                 
   14    36      > JMP                                                      ->21
         37    >   FE_FREE                                                  $13
   17    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.47 ms | 1400 KiB | 17 Q