3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.37 ms | 1400 KiB | 21 Q