3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = str_pad(dechex(999), 8, "0", STR_PAD_LEFT); $hash = implode(str_split($hash, 2), '/'); $hash2 = substr_replace($hash, 'f', 0, 1); printf("hash = %s, new hash = %s", $hash, $hash2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UhC3e
function name:  (null)
number of ops:  32
compiled vars:  !0 = $hash, !1 = $hash2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_pad'
          1        INIT_FCALL                                               'dechex'
          2        SEND_VAL                                                 999
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        SEND_VAL                                                 8
          6        SEND_VAL                                                 '0'
          7        SEND_VAL                                                 0
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
    3    10        INIT_FCALL                                               'implode'
         11        INIT_FCALL                                               'str_split'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 2
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        SEND_VAL                                                 '%2F'
         17        DO_ICALL                                         $6      
         18        ASSIGN                                                   !0, $6
    4    19        INIT_FCALL                                               'substr_replace'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 'f'
         22        SEND_VAL                                                 0
         23        SEND_VAL                                                 1
         24        DO_ICALL                                         $8      
         25        ASSIGN                                                   !1, $8
    5    26        INIT_FCALL                                               'printf'
         27        SEND_VAL                                                 'hash+%3D+%25s%2C+new+hash+%3D+%25s'
         28        SEND_VAR                                                 !0
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.79 ms | 1395 KiB | 25 Q