3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = '8234jfr98j4fnui4hfj3289rj8'; $numbers = preg_replace('/[a-z]/si', 'a', $hash); $numbers = str_split($numbers); foreach ($numbers as $key => $temp) { if ($temp === 'a') unset($numbers[$key]); } print_r($numbers);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/BZuQU
function name:  (null)
number of ops:  23
compiled vars:  !0 = $hash, !1 = $numbers, !2 = $temp, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '8234jfr98j4fnui4hfj3289rj8'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5Ba-z%5D%2Fsi'
          3        SEND_VAL                                                 'a'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    4     7        INIT_FCALL                                               'str_split'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    5    11      > FE_RESET_R                                       $9      !1, ->18
         12    > > FE_FETCH_R                                       ~10     $9, !2, ->18
         13    >   ASSIGN                                                   !3, ~10
    6    14        IS_IDENTICAL                                             !2, 'a'
         15      > JMPZ                                                     ~12, ->17
         16    >   UNSET_DIM                                                !1, !3
    5    17    > > JMP                                                      ->12
         18    >   FE_FREE                                                  $9
    8    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.35 ms | 1395 KiB | 19 Q