3v4l.org

run code in 300+ 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:  31
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        INIT_FCALL                                               'implode'
          8        SEND_VAL                                                 ''
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !3, $9
    9    12        INIT_FCALL                                               'preg_match'
         13        CONCAT                                           ~11     '%2F.%7B0%2C', !2
         14        CONCAT                                           ~12     ~11, '%7D'
         15        INIT_FCALL                                               'chr'
         16        ADD                                              ~13     65, !1
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                         $14     
         19        CONCAT                                           ~15     ~12, $14
         20        CONCAT                                           ~16     ~15, '.%7B0%2C'
         21        CONCAT                                           ~17     ~16, !2
         22        CONCAT                                           ~18     ~17, '%7D%2F'
         23        SEND_VAL                                                 ~18
         24        SEND_VAR                                                 !3
         25        SEND_REF                                                 !4
         26        DO_ICALL                                                 
   10    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !4
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.55 ms | 1002 KiB | 18 Q