3v4l.org

run code in 300+ PHP versions simultaneously
<?php $css = "@charset \"derp\";\n@import test;\n@imporrt derp;\n"; $matches = array(); $imports = preg_match_all("~^@import (.+);$~m",$css,$matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nCRVp
function name:  (null)
number of ops:  12
compiled vars:  !0 = $css, !1 = $matches, !2 = $imports
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%40charset+%22derp%22%3B%0A%40import+test%3B%0A%40imporrt+derp%3B%0A'
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%7E%5E%40import+%28.%2B%29%3B%24%7Em'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    7     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.46 ms | 1394 KiB | 17 Q