3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = '8**'; str_replace('*', '[0,9]{1}', $code); $course_filters = array('200','809'); if (!empty($course_filters[$subject])) { foreach ($course_filters[$subject] as $key => $code) { preg_match("/8[0-9]{1}[0-9]{1}/", $string, $matches); if ($matches) { echo "found = ".$code; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 24
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 23
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 23
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 22
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 24
filename:       /in/J2XIh
function name:  (null)
number of ops:  25
compiled vars:  !0 = $code, !1 = $course_filters, !2 = $subject, !3 = $key, !4 = $string, !5 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '8%2A%2A'
    4     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%2A'
          3        SEND_VAL                                                 '%5B0%2C9%5D%7B1%7D'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    6     6        ASSIGN                                                   !1, <array>
    8     7        ISSET_ISEMPTY_DIM_OBJ                         1  ~9      !1, !2
          8        BOOL_NOT                                         ~10     ~9
          9      > JMPZ                                                     ~10, ->24
    9    10    >   FETCH_DIM_R                                      ~11     !1, !2
         11      > FE_RESET_R                                       $12     ~11, ->23
         12    > > FE_FETCH_R                                       ~13     $12, !0, ->23
         13    >   ASSIGN                                                   !3, ~13
   10    14        INIT_FCALL                                               'preg_match'
         15        SEND_VAL                                                 '%2F8%5B0-9%5D%7B1%7D%5B0-9%5D%7B1%7D%2F'
         16        SEND_VAR                                                 !4
         17        SEND_REF                                                 !5
         18        DO_ICALL                                                 
   11    19      > JMPZ                                                     !5, ->22
   12    20    >   CONCAT                                           ~16     'found+%3D+', !0
         21        ECHO                                                     ~16
    9    22    > > JMP                                                      ->12
         23    >   FE_FREE                                                  $12
   15    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.79 ms | 1396 KiB | 17 Q