3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i='4N4P9N7P1N1P2N2P'; preg_match_all('/(\d+)(\w)/',$i,$m,2); foreach($m as $p){$k=$p[1];$o.=($p[2]=='N')?str_repeat('=',$k):str_repeat('- ',$k/2-$k%2).($k%2?'-':'');} $a=str_repeat('_',$n=strlen($o)); echo("$a\n\n\n$o\n\n$a\n");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 36
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 36
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/WIedb
function name:  (null)
number of ops:  52
compiled vars:  !0 = $i, !1 = $m, !2 = $p, !3 = $k, !4 = $o, !5 = $a, !6 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '4N4P9N7P1N1P2N2P'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%5Cd%2B%29%28%5Cw%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                                 
    5     7      > FE_RESET_R                                       $9      !1, ->36
          8    > > FE_FETCH_R                                               $9, !2, ->36
          9    >   FETCH_DIM_R                                      ~10     !2, 1
         10        ASSIGN                                                   !3, ~10
         11        FETCH_DIM_R                                      ~12     !2, 2
         12        IS_EQUAL                                                 ~12, 'N'
         13      > JMPZ                                                     ~13, ->20
         14    >   INIT_FCALL                                               'str_repeat'
         15        SEND_VAL                                                 '%3D'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $14     
         18        QM_ASSIGN                                        ~15     $14
         19      > JMP                                                      ->34
         20    >   INIT_FCALL                                               'str_repeat'
         21        SEND_VAL                                                 '-+'
         22        DIV                                              ~16     !3, 2
         23        MOD                                              ~17     !3, 2
         24        SUB                                              ~18     ~16, ~17
         25        SEND_VAL                                                 ~18
         26        DO_ICALL                                         $19     
         27        MOD                                              ~20     !3, 2
         28      > JMPZ                                                     ~20, ->31
         29    >   QM_ASSIGN                                        ~21     '-'
         30      > JMP                                                      ->32
         31    >   QM_ASSIGN                                        ~21     ''
         32    >   CONCAT                                           ~22     $19, ~21
         33        QM_ASSIGN                                        ~15     ~22
         34    >   ASSIGN_OP                                     8          !4, ~15
         35      > JMP                                                      ->8
         36    >   FE_FREE                                                  $9
    6    37        INIT_FCALL                                               'str_repeat'
         38        SEND_VAL                                                 '_'
         39        STRLEN                                           ~24     !4
         40        ASSIGN                                           ~25     !6, ~24
         41        SEND_VAL                                                 ~25
         42        DO_ICALL                                         $26     
         43        ASSIGN                                                   !5, $26
    7    44        ROPE_INIT                                     6  ~29     !5
         45        ROPE_ADD                                      1  ~29     ~29, '%0A%0A%0A'
         46        ROPE_ADD                                      2  ~29     ~29, !4
         47        ROPE_ADD                                      3  ~29     ~29, '%0A%0A'
         48        ROPE_ADD                                      4  ~29     ~29, !5
         49        ROPE_END                                      5  ~28     ~29, '%0A'
         50        ECHO                                                     ~28
         51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.49 ms | 1400 KiB | 17 Q