3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nom = 'TEST COMPLET EMMY'; $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/iiIkG
function name:  (null)
number of ops:  15
compiled vars:  !0 = $nom, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'TEST+COMPLET+EMMY'
    3     1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'sha1'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 10
          8        DO_ICALL                                         $4      
          9        CONCAT                                           ~5      $4, 'D'
         10        ASSIGN                                                   !1, ~5
    5    11        NOP                                                      
         12        FAST_CONCAT                                      ~7      'key%3D', !1
         13        ECHO                                                     ~7
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.25 ms | 1385 KiB | 17 Q