3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('/^([a-z]{0,3})(\d{3})[-\s]?(\d{2})[-\s]?(\d{4})([0-9a-z]{0,3})$/i', 'ABC123121234ABC', $number); var_dump($number);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h3XA1
function name:  (null)
number of ops:  9
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match_all'
          1        SEND_VAL                                                 '%2F%5E%28%5Ba-z%5D%7B0%2C3%7D%29%28%5Cd%7B3%7D%29%5B-%5Cs%5D%3F%28%5Cd%7B2%7D%29%5B-%5Cs%5D%3F%28%5Cd%7B4%7D%29%28%5B0-9a-z%5D%7B0%2C3%7D%29%24%2Fi'
          2        SEND_VAL                                                 'ABC123121234ABC'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.15 ms | 1385 KiB | 17 Q