3v4l.org

run code in 500+ PHP versions simultaneously
<?php $pattern = "#/(?<moduleName>[^/]+)/layout/[^/]*\.xml$#i"; $res1 = preg_match($pattern, "/Users/nickdekleijn/Sites/project-12gobiking-m2/vendor/magento/theme-adminhtml-backend/Magento_Backend/layout/default.xml", $matches); $res2 = preg_match($pattern, "/Users/wimvanderputten/Documents/gob/project-12gobiking-m2/vendor/magento/theme-adminhtml-backend/Magento_Backend/layout/default.xml", $matches); var_dump($res1); var_dump($res2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xl4DM
function name:  (null)
number of ops:  20
compiled vars:  !0 = $pattern, !1 = $res1, !2 = $matches, !3 = $res2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%23%2F%28%3F%3CmoduleName%3E%5B%5E%2F%5D%2B%29%2Flayout%2F%5B%5E%2F%5D%2A%5C.xml%24%23i'
    4     1        INIT_FCALL                                                   'preg_match'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     '%2FUsers%2Fnickdekleijn%2FSites%2Fproject-12gobiking-m2%2Fvendor%2Fmagento%2Ftheme-adminhtml-backend%2FMagento_Backend%2Flayout%2Fdefault.xml'
          4        SEND_REF                                                     !2
          5        DO_ICALL                                             $5      
          6        ASSIGN                                                       !1, $5
    5     7        INIT_FCALL                                                   'preg_match'
          8        SEND_VAR                                                     !0
          9        SEND_VAL                                                     '%2FUsers%2Fwimvanderputten%2FDocuments%2Fgob%2Fproject-12gobiking-m2%2Fvendor%2Fmagento%2Ftheme-adminhtml-backend%2FMagento_Backend%2Flayout%2Fdefault.xml'
         10        SEND_REF                                                     !2
         11        DO_ICALL                                             $7      
         12        ASSIGN                                                       !3, $7
    6    13        INIT_FCALL                                                   'var_dump'
         14        SEND_VAR                                                     !1
         15        DO_ICALL                                                     
    7    16        INIT_FCALL                                                   'var_dump'
         17        SEND_VAR                                                     !3
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.36 ms | 2048 KiB | 15 Q