3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/^<\S+\s*\S*>[\s\S]*?(?:^<\/\S+>)/m'; $vhost = ' DocumentRoot /www/example2 ServerName www.example.org ErrorLog /var/log/log.txt <Directory> ErrorLog /var/log/log.txt </Directory> <Directory /> ErrorLog /var/log/log.txt </Directory>'; preg_match_all($regex, $vhost, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nTlfv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $regex, !1 = $vhost, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5E%3C%5CS%2B%5Cs%2A%5CS%2A%3E%5B%5Cs%5CS%5D%2A%3F%28%3F%3A%5E%3C%5C%2F%5CS%2B%3E%29%2Fm'
    5     1        ASSIGN                                                   !1, '%0A++%09DocumentRoot+%2Fwww%2Fexample2%0A++%09ServerName+www.example.org%0A++%09ErrorLog+%2Fvar%2Flog%2Flog.txt%0A%09%0A%09%3CDirectory%3E%0A%09%09ErrorLog+%2Fvar%2Flog%2Flog.txt%0A%09%3C%2FDirectory%3E%0A%09%0A%09%3CDirectory+%2F%3E%0A%09%09ErrorLog+%2Fvar%2Flog%2Flog.txt%0A%09%3C%2FDirectory%3E'
   19     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   21     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.2 ms | 1385 KiB | 17 Q