3v4l.org

run code in 300+ PHP versions simultaneously
<?php $skid_num = 0; $per_skid = 3; $num_of_skids = 50; $mfg_begin = 0; for( $x = 0; $x <= $num_of_skids; $x++) { $skid_num++; if((($per_skid+$skid_num) % ($per_skid))==0) { $mfg_begin = $skid_num-1; } $mfg_end_num = $skid_num; echo("SKID # " . str_pad($skid_num, 2, " ", STR_PAD_RIGHT) . " " . $cst_prefix . $cst_begin . "-" . $cst_prefix . $cst_end . str_pad( " ", 5, " ") . $mfg_prefix . $mfg_begin_num . "-" . $mfg_prefix . $mfg_end_num . "\r\n"); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 6
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 6
Branch analysis from position: 43
Branch analysis from position: 6
Branch analysis from position: 13
filename:       /in/bf4hK
function name:  (null)
number of ops:  44
compiled vars:  !0 = $skid_num, !1 = $per_skid, !2 = $num_of_skids, !3 = $mfg_begin, !4 = $x, !5 = $mfg_end_num, !6 = $cst_prefix, !7 = $cst_begin, !8 = $cst_end, !9 = $mfg_prefix, !10 = $mfg_begin_num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    5     1        ASSIGN                                                   !1, 3
    6     2        ASSIGN                                                   !2, 50
    8     3        ASSIGN                                                   !3, 0
   14     4        ASSIGN                                                   !4, 0
          5      > JMP                                                      ->41
   17     6    >   PRE_INC                                                  !0
   19     7        ADD                                              ~17     !1, !0
          8        MOD                                              ~18     ~17, !1
          9        IS_EQUAL                                                 ~18, 0
         10      > JMPZ                                                     ~19, ->13
   21    11    >   SUB                                              ~20     !0, 1
         12        ASSIGN                                                   !3, ~20
   23    13    >   ASSIGN                                                   !5, !0
   26    14        INIT_FCALL                                               'str_pad'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 2
         17        SEND_VAL                                                 '+'
         18        SEND_VAL                                                 1
         19        DO_ICALL                                         $23     
         20        CONCAT                                           ~24     'SKID+%23+', $23
         21        CONCAT                                           ~25     ~24, '+'
         22        CONCAT                                           ~26     ~25, !6
         23        CONCAT                                           ~27     ~26, !7
         24        CONCAT                                           ~28     ~27, '-'
         25        CONCAT                                           ~29     ~28, !6
         26        CONCAT                                           ~30     ~29, !8
         27        INIT_FCALL                                               'str_pad'
         28        SEND_VAL                                                 '+'
         29        SEND_VAL                                                 5
         30        SEND_VAL                                                 '+'
         31        DO_ICALL                                         $31     
         32        CONCAT                                           ~32     ~30, $31
         33        CONCAT                                           ~33     ~32, !9
         34        CONCAT                                           ~34     ~33, !10
         35        CONCAT                                           ~35     ~34, '-'
         36        CONCAT                                           ~36     ~35, !9
         37        CONCAT                                           ~37     ~36, !5
         38        CONCAT                                           ~38     ~37, '%0D%0A'
         39        ECHO                                                     ~38
   14    40        PRE_INC                                                  !4
         41    >   IS_SMALLER_OR_EQUAL                                      !4, !2
         42      > JMPNZ                                                    ~40, ->6
   30    43    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.2 ms | 1392 KiB | 15 Q