3v4l.org

run code in 500+ PHP versions simultaneously
<?php $collection = range( 'A', 'Z' ); $offset = 1; $limit = 6; $alpha = implode("", $collection); Preg_match("/.{0," . $limit ."}" . chr(65 +$offset) . ".{0," . $limit ."}/", $alpha, $match); Var_dump($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BVdiF
function name:  (null)
number of ops:  28
compiled vars:  !0 = $collection, !1 = $offset, !2 = $limit, !3 = $alpha, !4 = $match
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'range'
          1        SEND_VAL                                                     'A'
          2        SEND_VAL                                                     'Z'
          3        DO_ICALL                                             $5      
          4        ASSIGN                                                       !0, $5
    4     5        ASSIGN                                                       !1, 1
    5     6        ASSIGN                                                       !2, 6
    7     7        FRAMELESS_ICALL_2                implode             ~9      '', !0
          8        ASSIGN                                                       !3, ~9
    9     9        INIT_FCALL                                                   'preg_match'
         10        CONCAT                                               ~11     '%2F.%7B0%2C', !2
         11        CONCAT                                               ~12     ~11, '%7D'
         12        INIT_FCALL                                                   'chr'
         13        ADD                                                  ~13     65, !1
         14        SEND_VAL                                                     ~13
         15        DO_ICALL                                             $14     
         16        CONCAT                                               ~15     ~12, $14
         17        CONCAT                                               ~16     ~15, '.%7B0%2C'
         18        CONCAT                                               ~17     ~16, !2
         19        CONCAT                                               ~18     ~17, '%7D%2F'
         20        SEND_VAL                                                     ~18
         21        SEND_VAR                                                     !3
         22        SEND_REF                                                     !4
         23        DO_ICALL                                                     
   10    24        INIT_FCALL                                                   'var_dump'
         25        SEND_VAR                                                     !4
         26        DO_ICALL                                                     
         27      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.08 ms | 2200 KiB | 17 Q