3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reťazec = "2FR7468532196V 6074A003.01.2013"; $reťazec = str_replace(' ', '', $reťazec); $a = $reťazec[0]; $b = substr($reťazec, 1, 12); $c = substr($reťazec, 15, 8); $d = substr($reťazec, 24, 10); foreach(['a', 'b', 'c', 'd'] as $var) { echo "Obsah premennej \$$var: " . ($$var) . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 37
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 37
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/vJLXh
function name:  (null)
number of ops:  39
compiled vars:  !0 = $reťazec, !1 = $a, !2 = $b, !3 = $c, !4 = $d, !5 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2FR7468532196V+6074A003.01.2013'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '+'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !0, $7
    5     7        FETCH_DIM_R                                      ~9      !0, 0
          8        ASSIGN                                                   !1, ~9
    6     9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 1
         12        SEND_VAL                                                 12
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !2, $11
    7    15        INIT_FCALL                                               'substr'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 15
         18        SEND_VAL                                                 8
         19        DO_ICALL                                         $13     
         20        ASSIGN                                                   !3, $13
    8    21        INIT_FCALL                                               'substr'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 24
         24        SEND_VAL                                                 10
         25        DO_ICALL                                         $15     
         26        ASSIGN                                                   !4, $15
   10    27      > FE_RESET_R                                       $17     <array>, ->37
         28    > > FE_FETCH_R                                               $17, !5, ->37
   11    29    >   ROPE_INIT                                     3  ~19     'Obsah+premennej+%24'
         30        ROPE_ADD                                      1  ~19     ~19, !5
         31        ROPE_END                                      2  ~18     ~19, '%3A+'
         32        FETCH_R                      local               ~21     !5
         33        CONCAT                                           ~22     ~18, ~21
         34        CONCAT                                           ~23     ~22, '%0A'
         35        ECHO                                                     ~23
   10    36      > JMP                                                      ->28
         37    >   FE_FREE                                                  $17
   12    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.38 ms | 1396 KiB | 17 Q