3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt="Fatti&Storie 5 - Lorem ipsum dolor [12] sit amet [nid:5]"; $re1=".*?"; $re2="(\\[)"; $re3="((?:[a-z][a-z0-9_]*))"; $re4="(:)"; $re5='(\\d+)'; if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $txt, $matches)) { $c1=$matches[1][0]; $var1=$matches[2][0]; $c2=$matches[3][0]; $int1=$matches[4][0]; print "($c1) ($var1) ($c2) ($int1)\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 40
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
filename:       /in/kASL7
function name:  (null)
number of ops:  41
compiled vars:  !0 = $txt, !1 = $re1, !2 = $re2, !3 = $re3, !4 = $re4, !5 = $re5, !6 = $c, !7 = $matches, !8 = $c1, !9 = $var1, !10 = $c2, !11 = $int1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Fatti%26Storie+5+-+Lorem+ipsum+dolor+%5B12%5D+sit+amet+%5Bnid%3A5%5D'
    3     1        ASSIGN                                                   !1, '.%2A%3F'
    4     2        ASSIGN                                                   !2, '%28%5C%5B%29'
    5     3        ASSIGN                                                   !3, '%28%28%3F%3A%5Ba-z%5D%5Ba-z0-9_%5D%2A%29%29'
    6     4        ASSIGN                                                   !4, '%28%3A%29'
    7     5        ASSIGN                                                   !5, '%28%5Cd%2B%29'
    8     6        INIT_FCALL                                               'preg_match_all'
          7        CONCAT                                           ~18     '%2F', !1
          8        CONCAT                                           ~19     ~18, !2
          9        CONCAT                                           ~20     ~19, !3
         10        CONCAT                                           ~21     ~20, !4
         11        CONCAT                                           ~22     ~21, '%2Fis'
         12        SEND_VAL                                                 ~22
         13        SEND_VAR                                                 !0
         14        SEND_REF                                                 !7
         15        DO_ICALL                                         $23     
         16        ASSIGN                                           ~24     !6, $23
         17      > JMPZ                                                     ~24, ->40
    9    18    >   FETCH_DIM_R                                      ~25     !7, 1
         19        FETCH_DIM_R                                      ~26     ~25, 0
         20        ASSIGN                                                   !8, ~26
   10    21        FETCH_DIM_R                                      ~28     !7, 2
         22        FETCH_DIM_R                                      ~29     ~28, 0
         23        ASSIGN                                                   !9, ~29
   11    24        FETCH_DIM_R                                      ~31     !7, 3
         25        FETCH_DIM_R                                      ~32     ~31, 0
         26        ASSIGN                                                   !10, ~32
   12    27        FETCH_DIM_R                                      ~34     !7, 4
         28        FETCH_DIM_R                                      ~35     ~34, 0
         29        ASSIGN                                                   !11, ~35
   13    30        ROPE_INIT                                     9  ~38     '%28'
         31        ROPE_ADD                                      1  ~38     ~38, !8
         32        ROPE_ADD                                      2  ~38     ~38, '%29+%28'
         33        ROPE_ADD                                      3  ~38     ~38, !9
         34        ROPE_ADD                                      4  ~38     ~38, '%29+%28'
         35        ROPE_ADD                                      5  ~38     ~38, !10
         36        ROPE_ADD                                      6  ~38     ~38, '%29+%28'
         37        ROPE_ADD                                      7  ~38     ~38, !11
         38        ROPE_END                                      8  ~37     ~38, '%29%0A'
         39        ECHO                                                     ~37
   14    40    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.17 ms | 1400 KiB | 15 Q