3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match("/(\w+)?/", "",$matches); print_r($matches); echo "\n"; preg_match("/(\w*)/", "",$matches); print_r($matches); $test='test'; $btest= preg_match("/^\w+$/i", $test); print_r($test); print_r($btest . '-');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SooKF
function name:  (null)
number of ops:  31
compiled vars:  !0 = $matches, !1 = $test, !2 = $btest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%28%5Cw%2B%29%3F%2F'
          2        SEND_VAL                                                 ''
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    4     8        ECHO                                                     '%0A'
    5     9        INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%2F%28%5Cw%2A%29%2F'
         11        SEND_VAL                                                 ''
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
    7    17        ASSIGN                                                   !1, 'test'
    8    18        INIT_FCALL                                               'preg_match'
         19        SEND_VAL                                                 '%2F%5E%5Cw%2B%24%2Fi'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $8      
         22        ASSIGN                                                   !2, $8
    9    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                                 
   10    26        INIT_FCALL                                               'print_r'
         27        CONCAT                                           ~11     !2, '-'
         28        SEND_VAL                                                 ~11
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.65 ms | 1387 KiB | 17 Q