3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "javascript1.js /dev/spacethenjs2.js doublenewline_tab_javascript3.js /dev/javascript4.js javascript5_trailingspaces.js "; var_export($test); echo "\n---\nSee divided and trimmed output: "; var_export(preg_match_all("~[/\w]+\.js\b~", $test, $matches) ? $matches[0] : 'no matches');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FkIB4
function name:  (null)
number of ops:  19
compiled vars:  !0 = $test, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'javascript1.js%0A+%2Fdev%2Fspacethenjs2.js%0A%0A%09doublenewline_tab_javascript3.js%0A%2Fdev%2Fjavascript4.js%0Ajavascript5_trailingspaces.js++++'
    8     1        INIT_FCALL                                               'var_export'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    9     4        ECHO                                                     '%0A---%0ASee+divided+and+trimmed+output%3A+'
   10     5        INIT_FCALL                                               'var_export'
          6        INIT_FCALL                                               'preg_match_all'
          7        SEND_VAL                                                 '%7E%5B%2F%5Cw%5D%2B%5C.js%5Cb%7E'
          8        SEND_VAR                                                 !0
          9        SEND_REF                                                 !1
         10        DO_ICALL                                         $4      
         11      > JMPZ                                                     $4, ->15
         12    >   FETCH_DIM_R                                      ~5      !1, 0
         13        QM_ASSIGN                                        ~6      ~5
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~6      'no+matches'
         16    >   SEND_VAL                                                 ~6
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
266.89 ms | 1011 KiB | 15 Q