3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '~^\|\h+\d+>(?!\h*\Q****END OF INPUT****\E)\h\K.+~mi'; $str = '================================================================================ INPUT FILE ================================================================================ NAME = CO-c0m1.txt | 1> ! HF def2-TZVP opt numfreq | 2> | 3> % scf | 4> convergence tight | 5> end | 6> | 7> * xyz 0 1 | 8> C 0 0 0 | 9> O 0 0 1 | 10> * | 11> | 12> ****END OF INPUT**** ================================================================================ '; preg_match_all($re, $str, $matches); // Print the entire match result print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9MBQU
function name:  (null)
number of ops:  11
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7E%5E%5C%7C%5Ch%2B%5Cd%2B%3E%28%3F%21%5Ch%2A%5CQ%2A%2A%2A%2AEND+OF+INPUT%2A%2A%2A%2A%5CE%29%5Ch%5CK.%2B%7Emi'
    4     1        ASSIGN                                                   !1, '%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A+++++++++++++++++++++++++++++++++++++++INPUT+FILE%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0ANAME+%3D+CO-c0m1.txt%0A%7C++1%3E+%21+HF+def2-TZVP+opt+numfreq%0A%0A%7C++2%3E+%0A%0A%7C++3%3E+%25+scf%0A%0A%7C++4%3E++++++convergence+tight%0A%0A%7C++5%3E+end%0A%0A%7C++6%3E+%0A%0A%7C++7%3E+%2A+xyz+0+1%0A%0A%7C++8%3E+C+0+0+0%0A%0A%7C++9%3E+O+0+0+1%0A%0A%7C+10%3E+%2A%0A%0A%7C+11%3E+%0A%7C+12%3E++++++++++++++++++++++++++%2A%2A%2A%2AEND+OF+INPUT%2A%2A%2A%2A%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A'
   33     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   36     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:
305.12 ms | 1011 KiB | 15 Q