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++) { $tmp_num = preg_match("/Art\. (\d)+/i",$artigos[$i]); echo "Numero de Artigo: ".$tmp_num; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/vI0hO
function name:  (null)
number of ops:  18
compiled vars:  !0 = $artigos, !1 = $artigos_len, !2 = $i, !3 = $tmp_num
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
   10     4        ASSIGN                                                   !2, 0
          5      > JMP                                                      ->15
   11     6    >   INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2FArt%5C.+%28%5Cd%29%2B%2Fi'
          8        FETCH_DIM_R                                      ~9      !0, !2
          9        SEND_VAL                                                 ~9
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !3, $10
   12    12        CONCAT                                           ~12     'Numero+de+Artigo%3A+', !3
         13        ECHO                                                     ~12
   10    14        PRE_INC                                                  !2
         15    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         16      > JMPNZ                                                    ~14, ->6
   13    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.9 ms | 1386 KiB | 15 Q