3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = array('foo', 'bar'); foreach ($string as $string) var_dump((hexdec(substr(md5($string), -4)) % 10) + 1);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 19
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/1N8NI
function name:  (null)
number of ops:  21
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $2      !0, ->19
          2    > > FE_FETCH_R                                               $2, !0, ->19
    4     3    >   INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'hexdec'
          5        INIT_FCALL                                               'substr'
          6        INIT_FCALL                                               'md5'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        SEND_VAL                                                 -4
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        MOD                                              ~6      $5, 10
         15        ADD                                              ~7      ~6, 1
         16        SEND_VAL                                                 ~7
         17        DO_ICALL                                                 
    3    18      > JMP                                                      ->2
         19    >   FE_FREE                                                  $2
    4    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.83 ms | 1395 KiB | 21 Q