3v4l.org

run code in 500+ PHP versions simultaneously
<?php $pattern = "/(.+\/)[^.]+\.([^.]+\.ha)$/"; $s = "/myhome/ishere/where/are.you.ha"; if (preg_match($pattern, $s, $match)) { var_dump($match); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/bkV8q
function name:  (null)
number of ops:  12
compiled vars:  !0 = $pattern, !1 = $s, !2 = $match
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2F%28.%2B%5C%2F%29%5B%5E.%5D%2B%5C.%28%5B%5E.%5D%2B%5C.ha%29%24%2F'
    4     1        ASSIGN                                                       !1, '%2Fmyhome%2Fishere%2Fwhere%2Fare.you.ha'
    5     2        INIT_FCALL                                                   'preg_match'
          3        SEND_VAR                                                     !0
          4        SEND_VAR                                                     !1
          5        SEND_REF                                                     !2
          6        DO_ICALL                                             $5      
          7      > JMPZ                                                         $5, ->11
    6     8    >   INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !2
         10        DO_ICALL                                                     
    7    11    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.81 ms | 1907 KiB | 15 Q