3v4l.org

run code in 300+ PHP versions simultaneously
<?php function create_path($hash) { return strtolower("{$hash[0]}/{$hash[1]}/{$hash[2]}/{$hash[3]}/{$hash[4]}/"); } // will output something like "a/h/q/6/d/" echo create_path('aHq6dc93d7b');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tD9Ne
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'create_path'
          1        SEND_VAL                                                 'aHq6dc93d7b'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function create_path:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tD9Ne
function name:  create_path
number of ops:  21
compiled vars:  !0 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'strtolower'
          2        FETCH_DIM_R                                      ~1      !0, 0
          3        ROPE_INIT                                    10  ~7      ~1
          4        ROPE_ADD                                      1  ~7      ~7, '%2F'
          5        FETCH_DIM_R                                      ~2      !0, 1
          6        ROPE_ADD                                      2  ~7      ~7, ~2
          7        ROPE_ADD                                      3  ~7      ~7, '%2F'
          8        FETCH_DIM_R                                      ~3      !0, 2
          9        ROPE_ADD                                      4  ~7      ~7, ~3
         10        ROPE_ADD                                      5  ~7      ~7, '%2F'
         11        FETCH_DIM_R                                      ~4      !0, 3
         12        ROPE_ADD                                      6  ~7      ~7, ~4
         13        ROPE_ADD                                      7  ~7      ~7, '%2F'
         14        FETCH_DIM_R                                      ~5      !0, 4
         15        ROPE_ADD                                      8  ~7      ~7, ~5
         16        ROPE_END                                      9  ~6      ~7, '%2F'
         17        SEND_VAL                                                 ~6
         18        DO_ICALL                                         $12     
         19      > RETURN                                                   $12
    6    20*     > RETURN                                                   null

End of function create_path

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.28 ms | 1002 KiB | 15 Q