3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max_chars = 7; for($num_stars = 1; $num_stars <= $max_chars; $num_stars += 2) { $dashes = ($max_chars - $num_stars) / 2; echo str_repeat('-', $dashes); // Print L dashes echo str_repeat('*', $num_stars); // Print starts echo str_repeat('-', $dashes); // Print R dashes echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 3
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 3
Branch analysis from position: 25
Branch analysis from position: 3
filename:       /in/AmSqf
function name:  (null)
number of ops:  26
compiled vars:  !0 = $max_chars, !1 = $num_stars, !2 = $dashes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 7
    5     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->23
    6     3    >   SUB                                              ~5      !0, !1
          4        DIV                                              ~6      ~5, 2
          5        ASSIGN                                                   !2, ~6
    7     6        INIT_FCALL                                               'str_repeat'
          7        SEND_VAL                                                 '-'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $8      
         10        ECHO                                                     $8
    8    11        INIT_FCALL                                               'str_repeat'
         12        SEND_VAL                                                 '%2A'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15        ECHO                                                     $9
    9    16        INIT_FCALL                                               'str_repeat'
         17        SEND_VAL                                                 '-'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $10     
         20        ECHO                                                     $10
   10    21        ECHO                                                     '%0A'
    5    22        ASSIGN_OP                                     1          !1, 2
         23    >   IS_SMALLER_OR_EQUAL                                      !1, !0
         24      > JMPNZ                                                    ~12, ->3
   11    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.97 ms | 1400 KiB | 15 Q