3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lookup = [ '#online' => 'System is operating at peak performance.', '#performancedegradation' => 'Performance is slower than normal.', '#directonly' => 'Traffic is bypassing Smart CDN system, and going directly to websites.' ]; $regex = '/^(?:' . implode('|', array_keys($lookup)) . ')(?=\s)/m'; $contents = <<<TEXT #online System is operating at peak performance. #directonly Traffic is bypassing Smart CDN system, and going directly to websites. TEXT; $matches = preg_match_all($regex, $contents, $m) ? $m[0] : []; foreach ($matches as $keyword) { printf( '<div class="badge_subpage_system"><h5>%s</h5><p>%s</p></div>', $keyword, $lookup[$keyword] ); echo "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 77) Position 1 = 24, Position 2 = 33
Branch analysis from position: 24
2 jumps found. (Code = 78) Position 1 = 25, Position 2 = 33
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 21
2 jumps found. (Code = 77) Position 1 = 24, Position 2 = 33
Branch analysis from position: 24
Branch analysis from position: 33
filename:       /in/CJUV6
function name:  (null)
number of ops:  35
compiled vars:  !0 = $lookup, !1 = $regex, !2 = $contents, !3 = $matches, !4 = $m, !5 = $keyword
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%7C'
          3        INIT_FCALL                                               'array_keys'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        SEND_VAR                                                 $7
          7        DO_ICALL                                         $8      
          8        CONCAT                                           ~9      '%2F%5E%28%3F%3A', $8
          9        CONCAT                                           ~10     ~9, '%29%28%3F%3D%5Cs%29%2Fm'
         10        ASSIGN                                                   !1, ~10
   10    11        ASSIGN                                                   !2, '%23online%0ASystem+is+operating+at+peak+performance.%0A%0A%23directonly%0ATraffic+is+bypassing+Smart+CDN+system%2C+and+going+directly+to+websites.'
   18    12        INIT_FCALL                                               'preg_match_all'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !2
         15        SEND_REF                                                 !4
         16        DO_ICALL                                         $13     
         17      > JMPZ                                                     $13, ->21
         18    >   FETCH_DIM_R                                      ~14     !4, 0
         19        QM_ASSIGN                                        ~15     ~14
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~15     <array>
         22    >   ASSIGN                                                   !3, ~15
   19    23      > FE_RESET_R                                       $17     !3, ->33
         24    > > FE_FETCH_R                                               $17, !5, ->33
   20    25    >   INIT_FCALL                                               'printf'
   21    26        SEND_VAL                                                 '%3Cdiv+class%3D%22badge_subpage_system%22%3E%3Ch5%3E%25s%3C%2Fh5%3E%3Cp%3E%25s%3C%2Fp%3E%3C%2Fdiv%3E'
   22    27        SEND_VAR                                                 !5
   23    28        FETCH_DIM_R                                      ~18     !0, !5
         29        SEND_VAL                                                 ~18
   20    30        DO_ICALL                                                 
   25    31        ECHO                                                     '%0A'
   19    32      > JMP                                                      ->24
         33    >   FE_FREE                                                  $17
   26    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.16 ms | 1008 KiB | 17 Q