3v4l.org

run code in 300+ PHP versions simultaneously
<?php $account_numbers = ["1234567890","12345678901234567890","1234567890123"]; $utility_id = 1; foreach ($account_numbers as $accountNumber) { //$customerNumber = str_pad($utility_id, 3, "0", STR_PAD_RIGHT); $hexnum = hexdec(md5($accountNumber)); $smallnum = $hexnum % 10; echo $smallnum . $PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/6hJTI
function name:  (null)
number of ops:  18
compiled vars:  !0 = $account_numbers, !1 = $utility_id, !2 = $accountNumber, !3 = $hexnum, !4 = $smallnum, !5 = $PHP_EOL
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 1
    5     2      > FE_RESET_R                                       $8      !0, ->16
          3    > > FE_FETCH_R                                               $8, !2, ->16
    7     4    >   INIT_FCALL                                               'hexdec'
          5        INIT_FCALL                                               'md5'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $9      
          8        SEND_VAR                                                 $9
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !3, $10
    8    11        MOD                                              ~12     !3, 10
         12        ASSIGN                                                   !4, ~12
    9    13        CONCAT                                           ~14     !4, !5
         14        ECHO                                                     ~14
    5    15      > JMP                                                      ->3
         16    >   FE_FREE                                                  $8
   10    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.17 ms | 1395 KiB | 17 Q