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 &$temp) { if ($temp === 'a') unset($temp); } print_r($numbers);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 126) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 16
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/UPmGF
function name:  (null)
number of ops:  22
compiled vars:  !0 = $hash, !1 = $numbers, !2 = $temp
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                                         $4      
          6        ASSIGN                                                   !1, $4
    4     7        INIT_FCALL                                               'str_split'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    5    11      > FE_RESET_RW                                      $8      !1, ->17
         12    > > FE_FETCH_RW                                              $8, !2, ->17
    6    13    >   IS_IDENTICAL                                             !2, 'a'
         14      > JMPZ                                                     ~9, ->16
         15    >   UNSET_CV                                                 !2
    5    16    > > JMP                                                      ->12
         17    >   FE_FREE                                                  $8
    8    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.93 ms | 1395 KiB | 19 Q