3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res=array(); $raw="aabbcdefghmnjaachto"; $res=array(); $word_array=array('cat','rat','goat','tozal','egg'); $raw_array= str_split($raw); foreach($word_array as $value) { $word_value= str_split($value); $res[$value]='yes'; foreach($word_value as $w_value) { if (!in_array($w_value,$raw_array)) $res[$value]='No'; } } print_r($res);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 29
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 29
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 27
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 27
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 26
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 27
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/BjnKX
function name:  (null)
number of ops:  34
compiled vars:  !0 = $res, !1 = $raw, !2 = $word_array, !3 = $raw_array, !4 = $value, !5 = $word_value, !6 = $w_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'aabbcdefghmnjaachto'
    5     2        ASSIGN                                                   !0, <array>
    6     3        ASSIGN                                                   !2, <array>
    7     4        INIT_FCALL                                               'str_split'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $11     
          7        ASSIGN                                                   !3, $11
    9     8      > FE_RESET_R                                       $13     !2, ->29
          9    > > FE_FETCH_R                                               $13, !4, ->29
   11    10    >   INIT_FCALL                                               'str_split'
         11        SEND_VAR                                                 !4
         12        DO_ICALL                                         $14     
         13        ASSIGN                                                   !5, $14
   12    14        ASSIGN_DIM                                               !0, !4
         15        OP_DATA                                                  'yes'
   13    16      > FE_RESET_R                                       $17     !5, ->27
         17    > > FE_FETCH_R                                               $17, !6, ->27
   15    18    >   INIT_FCALL                                               'in_array'
         19        SEND_VAR                                                 !6
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                         $18     
         22        BOOL_NOT                                         ~19     $18
         23      > JMPZ                                                     ~19, ->26
   16    24    >   ASSIGN_DIM                                               !0, !4
         25        OP_DATA                                                  'No'
   13    26    > > JMP                                                      ->17
         27    >   FE_FREE                                                  $17
    9    28      > JMP                                                      ->9
         29    >   FE_FREE                                                  $13
   20    30        INIT_FCALL                                               'print_r'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
293.26 ms | 1017 KiB | 16 Q