3v4l.org

run code in 300+ PHP versions simultaneously
<?php $HOME_DIR="D:\wamp\www\laddercs"; $TEMPLATE_DIR="$HOME_DIR/templates"; echo ReadTemplate("$TEMPLATE_DIR/common/home_middle.html"); $matches = "1111ewrw__"; preg_match("/(\w+)?/", "1ewrw",$matches); print_r($matches); echo "\n"; preg_match("/(\w*)/", "rwerwe",$matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u4MU5
function name:  (null)
number of ops:  29
compiled vars:  !0 = $HOME_DIR, !1 = $TEMPLATE_DIR, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'D%3A%5Cwamp%5Cwww%5Claddercs'
    4     1        NOP                                                      
          2        FAST_CONCAT                                      ~4      !0, '%2Ftemplates'
          3        ASSIGN                                                   !1, ~4
    5     4        INIT_FCALL_BY_NAME                                       'ReadTemplate'
          5        NOP                                                      
          6        FAST_CONCAT                                      ~6      !1, '%2Fcommon%2Fhome_middle.html'
          7        SEND_VAL_EX                                              ~6
          8        DO_FCALL                                      0  $7      
          9        ECHO                                                     $7
    7    10        ASSIGN                                                   !2, '1111ewrw__'
    8    11        INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%2F%28%5Cw%2B%29%3F%2F'
         13        SEND_VAL                                                 '1ewrw'
         14        SEND_REF                                                 !2
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
   10    19        ECHO                                                     '%0A'
   11    20        INIT_FCALL                                               'preg_match'
         21        SEND_VAL                                                 '%2F%28%5Cw%2A%29%2F'
         22        SEND_VAL                                                 'rwerwe'
         23        SEND_REF                                                 !2
         24        DO_ICALL                                                 
   12    25        INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.64 ms | 1387 KiB | 17 Q