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 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 = 23
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 22
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 22
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 21
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 23
filename:       /in/YLdvW
function name:  (null)
number of ops:  24
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, ->23
    9    10    > > FE_RESET_R                                       $11     !1, ->22
         11    > > FE_FETCH_R                                       ~12     $11, !0, ->22
         12    >   ASSIGN                                                   !3, ~12
   10    13        INIT_FCALL                                               'preg_match'
         14        SEND_VAL                                                 '%2F8%5B0-9%5D%7B1%7D%5B0-9%5D%7B1%7D%2F'
         15        SEND_VAR                                                 !4
         16        SEND_REF                                                 !5
         17        DO_ICALL                                                 
   11    18      > JMPZ                                                     !5, ->21
   12    19    >   CONCAT                                           ~15     'found+%3D+', !0
         20        ECHO                                                     ~15
    9    21    > > JMP                                                      ->11
         22    >   FE_FREE                                                  $11
   15    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.12 ms | 1396 KiB | 17 Q