3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Avalone, Doris B. - 09-01-2014 - a00005213.exe"; $searcharr = preg_match("/^\w+/", $name, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s4HNO
function name:  (null)
number of ops:  11
compiled vars:  !0 = $name, !1 = $searcharr, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'Avalone%2C+Doris+B.+-+09-01-2014+-+a00005213.exe'
    7     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%5Cw%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
   11     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.87 ms | 1385 KiB | 17 Q