3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = <<<EOL 1. first 2. second 3. third 12345678901234567890 EOL; preg_match_all('/^.{1,20}?$/im', $subject, $matches, PREG_PATTERN_ORDER); var_dump($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mVZD9
function name:  (null)
number of ops:  12
compiled vars:  !0 = $subject, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1.+first%0A2.+second%0A3.+third%0A%0A12345678901234567890'
   11     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5E.%7B1%2C20%7D%3F%24%2Fim'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
   12     7        INIT_FCALL                                               'var_dump'
          8        FETCH_DIM_R                                      ~4      !1, 0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.88 ms | 1394 KiB | 17 Q