3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'DE94300400000100724400'; if(strlen(trim($string)) != 22) return; $prefix=substr($string, 4, 8); $suffix=substr($string, 12, 10); print $account=$prefix.'/'.$suffix;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M5rVV
function name:  (null)
number of ops:  25
compiled vars:  !0 = $string, !1 = $prefix, !2 = $suffix, !3 = $account
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'DE94300400000100724400'
    5     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        STRLEN                                           ~6      $5
          5        IS_NOT_EQUAL                                             ~6, 22
          6      > JMPZ                                                     ~7, ->8
    6     7    > > RETURN                                                   null
    8     8    >   INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 4
         11        SEND_VAL                                                 8
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
    9    14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 12
         17        SEND_VAL                                                 10
         18        DO_ICALL                                         $10     
         19        ASSIGN                                                   !2, $10
   11    20        CONCAT                                           ~12     !1, '%2F'
         21        CONCAT                                           ~13     ~12, !2
         22        ASSIGN                                           ~14     !3, ~13
         23        ECHO                                                     ~14
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.25 ms | 1387 KiB | 17 Q