3v4l.org

run code in 300+ PHP versions simultaneously
<?php $artigos = [ "Art. 1 lala 23", "Art. 2 lala 23", "Art. 3 lala 23", "Art. 4345 lala 23", ]; $artigos_len = count($artigos) -1; for ($i=0; $i <= $artigos_len; $i++) { preg_match("/Art\. (\d+)/i",$artigos[$i],$match); echo "<ul class='artigo {$match[1]}'></ul>\n\r"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
Branch analysis from position: 6
filename:       /in/HRlJt
function name:  (null)
number of ops:  21
compiled vars:  !0 = $artigos, !1 = $artigos_len, !2 = $i, !3 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        COUNT                                            ~5      !0
          2        SUB                                              ~6      ~5, 1
          3        ASSIGN                                                   !1, ~6
   11     4        ASSIGN                                                   !2, 0
          5      > JMP                                                      ->18
   12     6    >   INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2FArt%5C.+%28%5Cd%2B%29%2Fi'
          8        FETCH_DIM_R                                      ~9      !0, !2
          9        SEND_VAL                                                 ~9
         10        SEND_REF                                                 !3
         11        DO_ICALL                                                 
   13    12        ROPE_INIT                                     3  ~13     '%3Cul+class%3D%27artigo+'
         13        FETCH_DIM_R                                      ~11     !3, 1
         14        ROPE_ADD                                      1  ~13     ~13, ~11
         15        ROPE_END                                      2  ~12     ~13, '%27%3E%3C%2Ful%3E%0A%0D'
         16        ECHO                                                     ~12
   11    17        PRE_INC                                                  !2
         18    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         19      > JMPNZ                                                    ~16, ->6
   15    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.6 ms | 1395 KiB | 15 Q