3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "RC9999999999A202"; Preg_match("/([A-Z]{2})(\d{10})A(\d+)/", $string, $match); List($string, $code, $phone, $amount) = $match; Echo $code . " ". $phone ." ". $amount;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QXVRA
function name:  (null)
number of ops:  22
compiled vars:  !0 = $string, !1 = $match, !2 = $code, !3 = $phone, !4 = $amount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'RC9999999999A202'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%5BA-Z%5D%7B2%7D%29%28%5Cd%7B10%7D%29A%28%5Cd%2B%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    7     6        QM_ASSIGN                                        ~7      !1
          7        FETCH_LIST_R                                     $8      ~7, 0
          8        ASSIGN                                                   !0, $8
          9        FETCH_LIST_R                                     $10     ~7, 1
         10        ASSIGN                                                   !2, $10
         11        FETCH_LIST_R                                     $12     ~7, 2
         12        ASSIGN                                                   !3, $12
         13        FETCH_LIST_R                                     $14     ~7, 3
         14        ASSIGN                                                   !4, $14
         15        FREE                                                     ~7
    9    16        CONCAT                                           ~16     !2, '+'
         17        CONCAT                                           ~17     ~16, !3
         18        CONCAT                                           ~18     ~17, '+'
         19        CONCAT                                           ~19     ~18, !4
         20        ECHO                                                     ~19
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.47 ms | 1010 KiB | 14 Q