3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contenu_avant = " *// function truc( "; echo strripos($contenu_avant, chr(10)) !== FALSE ? "True\n" : "False\n"; echo strripos($contenu_avant, "//") === FALSE ? "True\n" : "False\n"; if ( ((strripos($contenu_avant, "/*") !== FALSE) && (strripos($contenu_avant, "*/") === FALSE || strripos($contenu_avant, "/*") > strripos($contenu_avant, "*/"))) || ((strripos($contenu_avant, chr(10)) !== FALSE) && (strripos($contenu_avant, "//") !== FALSE && strripos($contenu_avant, "//") > strripos($contenu_avant, chr(10)))) || ((strripos($contenu_avant, chr(10)) === FALSE) && (strripos($contenu_avant, "//") !== FALSE)) ) { echo "en commentaire !"; } else { echo "ok"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 46) Position 1 = 27, Position 2 = 44
Branch analysis from position: 27
2 jumps found. (Code = 47) Position 1 = 33, Position 2 = 43
Branch analysis from position: 33
2 jumps found. (Code = 47) Position 1 = 45, Position 2 = 69
Branch analysis from position: 45
2 jumps found. (Code = 46) Position 1 = 51, Position 2 = 68
Branch analysis from position: 51
2 jumps found. (Code = 46) Position 1 = 57, Position 2 = 67
Branch analysis from position: 57
2 jumps found. (Code = 47) Position 1 = 70, Position 2 = 83
Branch analysis from position: 70
2 jumps found. (Code = 46) Position 1 = 76, Position 2 = 82
Branch analysis from position: 76
2 jumps found. (Code = 43) Position 1 = 84, Position 2 = 86
Branch analysis from position: 84
1 jumps found. (Code = 42) Position 1 = 87
Branch analysis from position: 87
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 86
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 82
Branch analysis from position: 83
Branch analysis from position: 67
Branch analysis from position: 68
Branch analysis from position: 69
Branch analysis from position: 43
Branch analysis from position: 44
Branch analysis from position: 19
2 jumps found. (Code = 46) Position 1 = 27, Position 2 = 44
Branch analysis from position: 27
Branch analysis from position: 44
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Branch analysis from position: 19
filename:       /in/vWgbD
function name:  (null)
number of ops:  88
compiled vars:  !0 = $contenu_avant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '++%2A%2F%2F+function+truc%28+'
    4     1        INIT_FCALL                                               'strripos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%0A'
          4        DO_ICALL                                         $2      
          5        TYPE_CHECK                                  1018          $2
          6      > JMPZ                                                     ~3, ->9
          7    >   QM_ASSIGN                                        ~4      'True%0A'
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~4      'False%0A'
         10    >   ECHO                                                     ~4
    5    11        INIT_FCALL                                               'strripos'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 '%2F%2F'
         14        DO_ICALL                                         $5      
         15        TYPE_CHECK                                    4          $5
         16      > JMPZ                                                     ~6, ->19
         17    >   QM_ASSIGN                                        ~7      'True%0A'
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~7      'False%0A'
         20    >   ECHO                                                     ~7
    8    21        INIT_FCALL                                               'strripos'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 '%2F%2A'
         24        DO_ICALL                                         $8      
         25        TYPE_CHECK                                  1018  ~9      $8
         26      > JMPZ_EX                                          ~9      ~9, ->44
         27    >   INIT_FCALL                                               'strripos'
         28        SEND_VAR                                                 !0
         29        SEND_VAL                                                 '%2A%2F'
         30        DO_ICALL                                         $10     
         31        TYPE_CHECK                                    4  ~11     $10
         32      > JMPNZ_EX                                         ~11     ~11, ->43
         33    >   INIT_FCALL                                               'strripos'
         34        SEND_VAR                                                 !0
         35        SEND_VAL                                                 '%2F%2A'
         36        DO_ICALL                                         $12     
         37        INIT_FCALL                                               'strripos'
         38        SEND_VAR                                                 !0
         39        SEND_VAL                                                 '%2A%2F'
         40        DO_ICALL                                         $13     
         41        IS_SMALLER                                       ~14     $13, $12
         42        BOOL                                             ~11     ~14
         43    >   BOOL                                             ~9      ~11
         44    > > JMPNZ_EX                                         ~9      ~9, ->69
    9    45    >   INIT_FCALL                                               'strripos'
         46        SEND_VAR                                                 !0
         47        SEND_VAL                                                 '%0A'
         48        DO_ICALL                                         $15     
         49        TYPE_CHECK                                  1018  ~16     $15
         50      > JMPZ_EX                                          ~16     ~16, ->68
         51    >   INIT_FCALL                                               'strripos'
         52        SEND_VAR                                                 !0
         53        SEND_VAL                                                 '%2F%2F'
         54        DO_ICALL                                         $17     
         55        TYPE_CHECK                                  1018  ~18     $17
         56      > JMPZ_EX                                          ~18     ~18, ->67
         57    >   INIT_FCALL                                               'strripos'
         58        SEND_VAR                                                 !0
         59        SEND_VAL                                                 '%2F%2F'
         60        DO_ICALL                                         $19     
         61        INIT_FCALL                                               'strripos'
         62        SEND_VAR                                                 !0
         63        SEND_VAL                                                 '%0A'
         64        DO_ICALL                                         $20     
         65        IS_SMALLER                                       ~21     $20, $19
         66        BOOL                                             ~18     ~21
         67    >   BOOL                                             ~16     ~18
         68    >   BOOL                                             ~9      ~16
         69    > > JMPNZ_EX                                         ~9      ~9, ->83
   10    70    >   INIT_FCALL                                               'strripos'
         71        SEND_VAR                                                 !0
         72        SEND_VAL                                                 '%0A'
         73        DO_ICALL                                         $22     
         74        TYPE_CHECK                                    4  ~23     $22
         75      > JMPZ_EX                                          ~23     ~23, ->82
         76    >   INIT_FCALL                                               'strripos'
         77        SEND_VAR                                                 !0
         78        SEND_VAL                                                 '%2F%2F'
         79        DO_ICALL                                         $24     
         80        TYPE_CHECK                                  1018  ~25     $24
         81        BOOL                                             ~23     ~25
         82    >   BOOL                                             ~9      ~23
         83    > > JMPZ                                                     ~9, ->86
   12    84    >   ECHO                                                     'en+commentaire+%21'
         85      > JMP                                                      ->87
   14    86    >   ECHO                                                     'ok'
   15    87    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.4 ms | 1404 KiB | 15 Q