3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q = 43837720; if ( strlen( trim( $q ) ) > 0 ) { $w = preg_split( "/ +/", $q ); $stopwords = array( 'en', 'de','het','een','der','van','op','den','in' ); $w2 = array(); foreach ( $w as $tw ) { if ( !in_array( $tw, $stopwords ) ) { $w2[] = $tw; } } $q = $tq1 = $tq2 = ""; if ( is_numeric( $or ) && strlen( $or ) == 13 ) { $q = $or; } else { foreach( $w2 as $w ) { $q .= "( {$w} OR {$w}~0.8 OR {$w}* )"; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 51
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 25
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 25
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 24
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 39
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
2 jumps found. (Code = 77) Position 1 = 40, Position 2 = 50
Branch analysis from position: 40
2 jumps found. (Code = 78) Position 1 = 41, Position 2 = 50
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
Branch analysis from position: 36
Branch analysis from position: 25
Branch analysis from position: 51
filename:       /in/Gq42a
function name:  (null)
number of ops:  52
compiled vars:  !0 = $q, !1 = $w, !2 = $stopwords, !3 = $w2, !4 = $tw, !5 = $tq1, !6 = $tq2, !7 = $or
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 43837720
    4     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $9      
          4        STRLEN                                           ~10     $9
          5        IS_SMALLER                                               0, ~10
          6      > JMPZ                                                     ~11, ->51
    6     7    >   INIT_FCALL                                               'preg_split'
          8        SEND_VAL                                                 '%2F+%2B%2F'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $12     
         11        ASSIGN                                                   !1, $12
    7    12        ASSIGN                                                   !2, <array>
    9    13        ASSIGN                                                   !3, <array>
   10    14      > FE_RESET_R                                       $16     !1, ->25
         15    > > FE_FETCH_R                                               $16, !4, ->25
   12    16    >   INIT_FCALL                                               'in_array'
         17        SEND_VAR                                                 !4
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $17     
         20        BOOL_NOT                                         ~18     $17
         21      > JMPZ                                                     ~18, ->24
   14    22    >   ASSIGN_DIM                                               !3
         23        OP_DATA                                                  !4
   10    24    > > JMP                                                      ->15
         25    >   FE_FREE                                                  $16
   18    26        ASSIGN                                           ~20     !6, ''
         27        ASSIGN                                           ~21     !5, ~20
         28        ASSIGN                                                   !0, ~21
   19    29        INIT_FCALL                                               'is_numeric'
         30        SEND_VAR                                                 !7
         31        DO_ICALL                                         $23     
         32      > JMPZ_EX                                          ~24     $23, ->36
         33    >   STRLEN                                           ~25     !7
         34        IS_EQUAL                                         ~26     ~25, 13
         35        BOOL                                             ~24     ~26
         36    > > JMPZ                                                     ~24, ->39
   21    37    >   ASSIGN                                                   !0, !7
         38      > JMP                                                      ->51
   25    39    > > FE_RESET_R                                       $28     !3, ->50
         40    > > FE_FETCH_R                                               $28, !1, ->50
   27    41    >   ROPE_INIT                                     7  ~30     '%28+'
         42        ROPE_ADD                                      1  ~30     ~30, !1
         43        ROPE_ADD                                      2  ~30     ~30, '+OR+'
         44        ROPE_ADD                                      3  ~30     ~30, !1
         45        ROPE_ADD                                      4  ~30     ~30, '%7E0.8+OR+'
         46        ROPE_ADD                                      5  ~30     ~30, !1
         47        ROPE_END                                      6  ~29     ~30, '%2A+%29'
         48        ASSIGN_OP                                     8          !0, ~29
   25    49      > JMP                                                      ->40
         50    >   FE_FREE                                                  $28
   30    51    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.22 ms | 1400 KiB | 21 Q