3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "my name is numbre 9000 900 1"; $dictionary = array("my", "name", "is", "number"); foreach(explode(' ',$string) as $wrd){ if(in_array($wrd, $dictionary) || is_numeric($wrd)){ echo $wrd . PHP_EOL; } else { echo $wrd."->wrong" . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 25
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 25
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 17
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/Big0q
function name:  (null)
number of ops:  27
compiled vars:  !0 = $string, !1 = $dictionary, !2 = $wrd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'my+name+is+numbre+9000+900+1'
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6      > FE_RESET_R                                       $6      $5, ->25
          7    > > FE_FETCH_R                                               $6, !2, ->25
    6     8    >   INIT_FCALL                                               'in_array'
          9        SEND_VAR                                                 !2
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12      > JMPNZ_EX                                         ~8      $7, ->17
         13    >   INIT_FCALL                                               'is_numeric'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $9      
         16        BOOL                                             ~8      $9
         17    > > JMPZ                                                     ~8, ->21
    7    18    >   CONCAT                                           ~10     !2, '%0A'
         19        ECHO                                                     ~10
    6    20      > JMP                                                      ->24
    9    21    >   CONCAT                                           ~11     !2, '-%3Ewrong'
         22        CONCAT                                           ~12     ~11, '%0A'
         23        ECHO                                                     ~12
    5    24    > > JMP                                                      ->7
         25    >   FE_FREE                                                  $6
   11    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.12 ms | 1013 KiB | 16 Q