3v4l.org

run code in 300+ PHP versions simultaneously
<?php $smash = ['65S34523APPLE IS VERY BEAUTIFUL6.000TX786.34563.675 234.89', '06W01232BOOK IS SUCCESSFUL1.000YJ160.00021.853 496.00', '67E45643DO YOU HAVE A PEN? 7/56.450EQ9000.3451.432 765.12']; foreach ($smash as $line) { $result[] = preg_match('~(\w+\d)(\D+)[^A-Z]+([A-Z]{2})(\d+\.\d{3})~', $line, $out) ? array_slice($out, 1) : []; } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 19
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/kkog5
function name:  (null)
number of ops:  24
compiled vars:  !0 = $smash, !1 = $line, !2 = $result, !3 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1      > FE_RESET_R                                       $5      !0, ->19
          2    > > FE_FETCH_R                                               $5, !1, ->19
    7     3    >   INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%7E%28%5Cw%2B%5Cd%29%28%5CD%2B%29%5B%5EA-Z%5D%2B%28%5BA-Z%5D%7B2%7D%29%28%5Cd%2B%5C.%5Cd%7B3%7D%29%7E'
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !3
          7        DO_ICALL                                         $7      
          8      > JMPZ                                                     $7, ->15
          9    >   INIT_FCALL                                               'array_slice'
         10        SEND_VAR                                                 !3
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $8      
         13        QM_ASSIGN                                        ~9      $8
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~9      <array>
         16    >   ASSIGN_DIM                                               !2
         17        OP_DATA                                                  ~9
    6    18      > JMP                                                      ->2
         19    >   FE_FREE                                                  $5
    9    20        INIT_FCALL                                               'var_export'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.53 ms | 1396 KiB | 19 Q