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)); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 19
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: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/9t94K
function name:  (null)
number of ops:  21
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, ->19
          3    > > FE_FETCH_R                                               $8, !3, ->19
    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
    7    18      > JMP                                                      ->3
         19    >   FE_FREE                                                  $8
   13    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.91 ms | 1387 KiB | 17 Q