3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nom = 'test renommage lot'; $nom = str_replace(' ', '-', suppr_accents($nom)); $key = substr(sha1($nom), 0, 10).'D'; echo "key=$key";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pdBVF
function name:  (null)
number of ops:  24
compiled vars:  !0 = $nom, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test+renommage+lot'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '+'
          3        SEND_VAL                                                 '-'
          4        INIT_FCALL_BY_NAME                                       'suppr_accents'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !0, $4
    4    10        INIT_FCALL                                               'substr'
         11        INIT_FCALL                                               'sha1'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 10
         17        DO_ICALL                                         $7      
         18        CONCAT                                           ~8      $7, 'D'
         19        ASSIGN                                                   !1, ~8
    6    20        NOP                                                      
         21        FAST_CONCAT                                      ~10     'key%3D', !1
         22        ECHO                                                     ~10
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.33 ms | 1399 KiB | 19 Q