3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contenu_avant = "// \n function truc( "; if ((strripos($contenu_avant, "/*") === TRUE && strripos("/*") > strripos("*/")) || (strripos($contenu_avant, "//") === TRUE && strripos("//") > strripos(chr(10)))) echo "en commentaire !"; else echo "ok";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 31
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 22, Position 2 = 30
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
Branch analysis from position: 31
Branch analysis from position: 15
filename:       /in/pO3qi
function name:  (null)
number of ops:  36
compiled vars:  !0 = $contenu_avant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%2F+%0A+function+truc%28+'
    5     1        INIT_FCALL                                               'strripos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%2F%2A'
          4        DO_ICALL                                         $2      
          5        TYPE_CHECK                                    8  ~3      $2
          6      > JMPZ_EX                                          ~3      ~3, ->15
          7    >   INIT_FCALL                                               'strripos'
          8        SEND_VAL                                                 '%2F%2A'
          9        DO_ICALL                                         $4      
         10        INIT_FCALL                                               'strripos'
         11        SEND_VAL                                                 '%2A%2F'
         12        DO_ICALL                                         $5      
         13        IS_SMALLER                                       ~6      $5, $4
         14        BOOL                                             ~3      ~6
         15    > > JMPNZ_EX                                         ~3      ~3, ->31
    6    16    >   INIT_FCALL                                               'strripos'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 '%2F%2F'
         19        DO_ICALL                                         $7      
         20        TYPE_CHECK                                    8  ~8      $7
         21      > JMPZ_EX                                          ~8      ~8, ->30
         22    >   INIT_FCALL                                               'strripos'
         23        SEND_VAL                                                 '%2F%2F'
         24        DO_ICALL                                         $9      
         25        INIT_FCALL                                               'strripos'
         26        SEND_VAL                                                 '%0A'
         27        DO_ICALL                                         $10     
         28        IS_SMALLER                                       ~11     $10, $9
         29        BOOL                                             ~8      ~11
         30    >   BOOL                                             ~3      ~8
         31    > > JMPZ                                                     ~3, ->34
    7    32    >   ECHO                                                     'en+commentaire+%21'
         33      > JMP                                                      ->35
    9    34    >   ECHO                                                     'ok'
         35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.82 ms | 1388 KiB | 15 Q