3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'Just gonna say sum stuff hare so ya just rolll wid itt. Yo.'; if (strlen(preg_replace('/\\s/si','',$message)) < 30 || preg_match('/(.)\1{6}/si',strtolower($message)) || preg_match('/(.{2})\1{3}/si',strtolower($message)) || preg_match('/(.+)\1{2}/si',strtolower($message))) { echo 'test'; } var_dump(strlen(preg_replace('/\\s/si','',$message)) < 30); var_dump(preg_match('/(.)\1{6}/si',strtolower($message))); var_dump(preg_match('/(.{2})\1{3}/si',strtolower($message))); var_dump(preg_match('/(.+)\1{2}/si',strtolower($message)));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
2 jumps found. (Code = 47) Position 1 = 27, Position 2 = 35
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 37
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 35
Branch analysis from position: 26
Branch analysis from position: 17
filename:       /in/dNrIf
function name:  (null)
number of ops:  78
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Just+gonna+say+sum+stuff+hare+so+ya+just+rolll+wid+itt.++Yo.'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5Cs%2Fsi'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        STRLEN                                           ~3      $2
          7        IS_SMALLER                                       ~4      ~3, 30
          8      > JMPNZ_EX                                         ~4      ~4, ->17
    4     9    >   INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%2F%28.%29%5C1%7B6%7D%2Fsi'
         11        INIT_FCALL                                               'strtolower'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16        BOOL                                             ~4      $6
         17    > > JMPNZ_EX                                         ~4      ~4, ->26
    5    18    >   INIT_FCALL                                               'preg_match'
         19        SEND_VAL                                                 '%2F%28.%7B2%7D%29%5C1%7B3%7D%2Fsi'
         20        INIT_FCALL                                               'strtolower'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $7      
         23        SEND_VAR                                                 $7
         24        DO_ICALL                                         $8      
         25        BOOL                                             ~4      $8
         26    > > JMPNZ_EX                                         ~4      ~4, ->35
    6    27    >   INIT_FCALL                                               'preg_match'
         28        SEND_VAL                                                 '%2F%28.%2B%29%5C1%7B2%7D%2Fsi'
         29        INIT_FCALL                                               'strtolower'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                         $9      
         32        SEND_VAR                                                 $9
         33        DO_ICALL                                         $10     
         34        BOOL                                             ~4      $10
         35    > > JMPZ                                                     ~4, ->37
    7    36    >   ECHO                                                     'test'
    9    37    >   INIT_FCALL                                               'var_dump'
         38        INIT_FCALL                                               'preg_replace'
         39        SEND_VAL                                                 '%2F%5Cs%2Fsi'
         40        SEND_VAL                                                 ''
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                         $11     
         43        STRLEN                                           ~12     $11
         44        IS_SMALLER                                       ~13     ~12, 30
         45        SEND_VAL                                                 ~13
         46        DO_ICALL                                                 
   10    47        INIT_FCALL                                               'var_dump'
         48        INIT_FCALL                                               'preg_match'
         49        SEND_VAL                                                 '%2F%28.%29%5C1%7B6%7D%2Fsi'
         50        INIT_FCALL                                               'strtolower'
         51        SEND_VAR                                                 !0
         52        DO_ICALL                                         $15     
         53        SEND_VAR                                                 $15
         54        DO_ICALL                                         $16     
         55        SEND_VAR                                                 $16
         56        DO_ICALL                                                 
   11    57        INIT_FCALL                                               'var_dump'
         58        INIT_FCALL                                               'preg_match'
         59        SEND_VAL                                                 '%2F%28.%7B2%7D%29%5C1%7B3%7D%2Fsi'
         60        INIT_FCALL                                               'strtolower'
         61        SEND_VAR                                                 !0
         62        DO_ICALL                                         $18     
         63        SEND_VAR                                                 $18
         64        DO_ICALL                                         $19     
         65        SEND_VAR                                                 $19
         66        DO_ICALL                                                 
   12    67        INIT_FCALL                                               'var_dump'
         68        INIT_FCALL                                               'preg_match'
         69        SEND_VAL                                                 '%2F%28.%2B%29%5C1%7B2%7D%2Fsi'
         70        INIT_FCALL                                               'strtolower'
         71        SEND_VAR                                                 !0
         72        DO_ICALL                                         $21     
         73        SEND_VAR                                                 $21
         74        DO_ICALL                                         $22     
         75        SEND_VAR                                                 $22
         76        DO_ICALL                                                 
         77      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.28 ms | 1400 KiB | 21 Q