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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.27 ms | 1395 KiB | 15 Q