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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.81 ms | 1394 KiB | 15 Q