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?'-':'');} foreach($m as $p){$k=$p[1]; $o.=str_repeat($p[2]=='N'?'=':'-',$k); } $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 = 23
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 23
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/5YbBW
function name:  (null)
number of ops:  39
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                                                 
    6     7      > FE_RESET_R                                       $9      !1, ->23
          8    > > FE_FETCH_R                                               $9, !2, ->23
          9    >   FETCH_DIM_R                                      ~10     !2, 1
         10        ASSIGN                                                   !3, ~10
    7    11        INIT_FCALL                                               'str_repeat'
         12        FETCH_DIM_R                                      ~12     !2, 2
         13        IS_EQUAL                                                 ~12, 'N'
         14      > JMPZ                                                     ~13, ->17
         15    >   QM_ASSIGN                                        ~14     '%3D'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~14     '-'
         18    >   SEND_VAL                                                 ~14
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                         $15     
         21        ASSIGN_OP                                     8          !4, $15
    6    22      > JMP                                                      ->8
         23    >   FE_FREE                                                  $9
   10    24        INIT_FCALL                                               'str_repeat'
         25        SEND_VAL                                                 '_'
         26        STRLEN                                           ~17     !4
         27        ASSIGN                                           ~18     !6, ~17
         28        SEND_VAL                                                 ~18
         29        DO_ICALL                                         $19     
         30        ASSIGN                                                   !5, $19
   11    31        ROPE_INIT                                     6  ~22     !5
         32        ROPE_ADD                                      1  ~22     ~22, '%0A%0A%0A'
         33        ROPE_ADD                                      2  ~22     ~22, !4
         34        ROPE_ADD                                      3  ~22     ~22, '%0A%0A'
         35        ROPE_ADD                                      4  ~22     ~22, !5
         36        ROPE_END                                      5  ~21     ~22, '%0A'
         37        ECHO                                                     ~21
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.05 ms | 1400 KiB | 17 Q