3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dist = "1"; $mapno = "5"; $parcel = "3.1"; $subparcel = ""; $parid = ""; if(strlen($dist) == 1){ $dist = '0' . $dist; } $arr = explode('.',$parcel); if (count($arr) > 1) { $parcel = $arr[0]; $subparcel = $arr[1]; } if(strlen($subparcel) == 1){ $subparcel = '0' . $subparcel; } $spcs = " "; if (strlen($mapno) == 1) { $spc = " "; } if (strlen($mapno) == 2){ $spc = " "; } $parid = $dist . $spc . str_pad($mapno, 4, '0', STR_PAD_RIGHT) . str_pad($parcel, 4, '0', STR_PAD_RIGHT) . str_pad($subparcel, 6, '0', STR_PAD_RIGHT); echo $parid; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 22
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 32
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 36
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
Branch analysis from position: 32
Branch analysis from position: 27
Branch analysis from position: 22
Branch analysis from position: 10
filename:       /in/cI9ZN
function name:  (null)
number of ops:  61
compiled vars:  !0 = $dist, !1 = $mapno, !2 = $parcel, !3 = $subparcel, !4 = $parid, !5 = $arr, !6 = $spcs, !7 = $spc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1'
    3     1        ASSIGN                                                   !1, '5'
    4     2        ASSIGN                                                   !2, '3.1'
    5     3        ASSIGN                                                   !3, ''
    6     4        ASSIGN                                                   !4, ''
    7     5        STRLEN                                           ~13     !0
          6        IS_EQUAL                                                 ~13, 1
          7      > JMPZ                                                     ~14, ->10
    8     8    >   CONCAT                                           ~15     '0', !0
          9        ASSIGN                                                   !0, ~15
   11    10    >   INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '.'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $17     
         14        ASSIGN                                                   !5, $17
   12    15        COUNT                                            ~19     !5
         16        IS_SMALLER                                               1, ~19
         17      > JMPZ                                                     ~20, ->22
   13    18    >   FETCH_DIM_R                                      ~21     !5, 0
         19        ASSIGN                                                   !2, ~21
   14    20        FETCH_DIM_R                                      ~23     !5, 1
         21        ASSIGN                                                   !3, ~23
   17    22    >   STRLEN                                           ~25     !3
         23        IS_EQUAL                                                 ~25, 1
         24      > JMPZ                                                     ~26, ->27
   18    25    >   CONCAT                                           ~27     '0', !3
         26        ASSIGN                                                   !3, ~27
   21    27    >   ASSIGN                                                   !6, '+'
   22    28        STRLEN                                           ~30     !1
         29        IS_EQUAL                                                 ~30, 1
         30      > JMPZ                                                     ~31, ->32
   23    31    >   ASSIGN                                                   !7, '+++'
   25    32    >   STRLEN                                           ~33     !1
         33        IS_EQUAL                                                 ~33, 2
         34      > JMPZ                                                     ~34, ->36
   26    35    >   ASSIGN                                                   !7, '++'
   29    36    >   CONCAT                                           ~36     !0, !7
         37        INIT_FCALL                                               'str_pad'
         38        SEND_VAR                                                 !1
         39        SEND_VAL                                                 4
         40        SEND_VAL                                                 '0'
         41        SEND_VAL                                                 1
         42        DO_ICALL                                         $37     
         43        CONCAT                                           ~38     ~36, $37
         44        INIT_FCALL                                               'str_pad'
         45        SEND_VAR                                                 !2
         46        SEND_VAL                                                 4
         47        SEND_VAL                                                 '0'
         48        SEND_VAL                                                 1
         49        DO_ICALL                                         $39     
         50        CONCAT                                           ~40     ~38, $39
         51        INIT_FCALL                                               'str_pad'
         52        SEND_VAR                                                 !3
         53        SEND_VAL                                                 6
         54        SEND_VAL                                                 '0'
         55        SEND_VAL                                                 1
         56        DO_ICALL                                         $41     
         57        CONCAT                                           ~42     ~40, $41
         58        ASSIGN                                                   !4, ~42
   31    59        ECHO                                                     !4
   32    60      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.16 ms | 1400 KiB | 17 Q