3v4l.org

run code in 300+ PHP versions simultaneously
<?php $needle = array('THIS', 'test', 'hello', 'A', 'is'); $haystack = array('helloTHISisAblindtest'); foreach ($arr as $a) { $target = []; foreach ($haystack as $h) { $target = array_merge($target, explode($a, $h)); } $haystack = $target; } var_dump($haystack);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 20
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 20
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 17
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/AVRjf
function name:  (null)
number of ops:  25
compiled vars:  !0 = $needle, !1 = $haystack, !2 = $arr, !3 = $a, !4 = $target, !5 = $h
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2      > FE_RESET_R                                       $8      !2, ->20
          3    > > FE_FETCH_R                                               $8, !3, ->20
    8     4    >   ASSIGN                                                   !4, <array>
   10     5      > FE_RESET_R                                       $10     !1, ->17
          6    > > FE_FETCH_R                                               $10, !5, ->17
   11     7    >   INIT_FCALL                                               'array_merge'
          8        SEND_VAR                                                 !4
          9        INIT_FCALL                                               'explode'
         10        SEND_VAR                                                 !3
         11        SEND_VAR                                                 !5
         12        DO_ICALL                                         $11     
         13        SEND_VAR                                                 $11
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !4, $12
   10    16      > JMP                                                      ->6
         17    >   FE_FREE                                                  $10
   14    18        ASSIGN                                                   !1, !4
    7    19      > JMP                                                      ->3
         20    >   FE_FREE                                                  $8
   17    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.24 ms | 1396 KiB | 19 Q