3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($n){$F='%1$'.($n-1)."s*%1\$s\n";$L='';do printf($F,$n?$L:'');while($n--&&$L.='*');} a(5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tg4ZL
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'a'
          1        SEND_VAL                                                 5
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
Branch analysis from position: 18
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
Branch analysis from position: 18
filename:       /in/tg4ZL
function name:  a
number of ops:  20
compiled vars:  !0 = $n, !1 = $F, !2 = $L
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        SUB                                              ~3      !0, 1
          2        CONCAT                                           ~4      '%251%24', ~3
          3        CONCAT                                           ~5      ~4, 's%2A%251%24s%0A'
          4        ASSIGN                                                   !1, ~5
          5        ASSIGN                                                   !2, ''
          6    >   INIT_FCALL                                               'printf'
          7        SEND_VAR                                                 !1
          8      > JMPZ                                                     !0, ->11
          9    >   QM_ASSIGN                                        ~8      !2
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~8      ''
         12    >   SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
         14        POST_DEC                                         ~10     !0
         15      > JMPZ_EX                                          ~10     ~10, ->18
         16    >   ASSIGN_OP                                     8  ~11     !2, '%2A'
         17        BOOL                                             ~10     ~11
         18    > > JMPNZ                                                    ~10, ->6
         19    > > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.7 ms | 1403 KiB | 16 Q