3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = array('40_'); if (preg_match('/^\d{1,}_$/', reset($var), $match)) { var_dump($match); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/VV1cq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $var, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%5Cd%7B1%2C%7D_%24%2F'
          3        INIT_FCALL                                               'reset'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $4      
          9      > JMPZ                                                     $4, ->13
    5    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    6    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.25 ms | 1394 KiB | 19 Q