3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'xxABC1xxxABC2xx'; if ( preg_match('/\d[A-Z]+x/', strrev($str), $match) ) echo strrev($match[0]);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/DS8K3
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'xxABC1xxxABC2xx'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5Cd%5BA-Z%5D%2Bx%2F'
          3        INIT_FCALL                                               'strrev'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $4      
          9      > JMPZ                                                     $4, ->15
    6    10    >   INIT_FCALL                                               'strrev'
         11        FETCH_DIM_R                                      ~5      !1, 0
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                         $6      
         14        ECHO                                                     $6
         15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.61 ms | 1394 KiB | 17 Q