3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $contenu_avant = "/* */ \n function truc( "; echo strripos($contenu_avant, "//") .">". strripos($contenu_avant, chr(10)); echo "***".strripos($contenu_avant, "//")."***"; if ((strripos($contenu_avant, "/*") !== FALSE && strripos($contenu_avant, "/*") > strripos($contenu_avant, "*/")) || (strripos($contenu_avant, "//") !== FALSE && strripos($contenu_avant, "//") > strripos($contenu_avant, chr(10)))) echo "en commentaire !"; else echo "ok";
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 28, Position 2 = 38
Branch analysis from position: 28
Jump found. Position 1 = 39, Position 2 = 59
Branch analysis from position: 39
Jump found. Position 1 = 45, Position 2 = 58
Branch analysis from position: 45
Jump found. Position 1 = 60, Position 2 = 62
Branch analysis from position: 60
Jump found. Position 1 = 63
Branch analysis from position: 63
Jump found. Position 1 = -2
Branch analysis from position: 62
Jump found. Position 1 = -2
Branch analysis from position: 58
Branch analysis from position: 59
Branch analysis from position: 38
filename:       /in/AEbnd
function name:  (null)
number of ops:  64
compiled vars:  !0 = $contenu_avant
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, '%2F%2A+%2A%2F+%0A+function+truc%28+'
   5     1        INIT_FCALL                                               'strripos'
         2        SEND_VAR                                                 !0
         3        SEND_VAL                                                 '%2F%2F'
         4        DO_ICALL                                         $2      
         5        CONCAT                                           ~3      $2, '%3E'
         6        INIT_FCALL                                               'strripos'
         7        SEND_VAR                                                 !0
         8        INIT_FCALL                                               'chr'
         9        SEND_VAL                                                 10
        10        DO_ICALL                                         $4      
        11        SEND_VAR                                                 $4
        12        DO_ICALL                                         $5      
        13        CONCAT                                           ~6      ~3, $5
        14        ECHO                                                     ~6
   7    15        INIT_FCALL                                               'strripos'
        16        SEND_VAR                                                 !0
        17        SEND_VAL                                                 '%2F%2F'
        18        DO_ICALL                                         $7      
        19        CONCAT                                           ~8      '%2A%2A%2A', $7
        20        CONCAT                                           ~9      ~8, '%2A%2A%2A'
        21        ECHO                                                     ~9
  10    22        INIT_FCALL                                               'strripos'
        23        SEND_VAR                                                 !0
        24        SEND_VAL                                                 '%2F%2A'
        25        DO_ICALL                                         $10     
        26        IS_NOT_IDENTICAL                                 ~11     $10, <false>
        27      > JMPZ_EX                                          ~11     ~11, ->38
        28    >   INIT_FCALL                                               'strripos'
        29        SEND_VAR                                                 !0
        30        SEND_VAL                                                 '%2F%2A'
        31        DO_ICALL                                         $12     
        32        INIT_FCALL                                               'strripos'
        33        SEND_VAR                                                 !0
        34        SEND_VAL                                                 '%2A%2F'
        35        DO_ICALL                                         $13     
        36        IS_SMALLER                                       ~14     $13, $12
        37        BOOL                                             ~11     ~14
        38    > > JMPNZ_EX                                         ~11     ~11, ->59
  11    39    >   INIT_FCALL                                               'strripos'
        40        SEND_VAR                                                 !0
        41        SEND_VAL                                                 '%2F%2F'
        42        DO_ICALL                                         $15     
        43        IS_NOT_IDENTICAL                                 ~16     $15, <false>
        44      > JMPZ_EX                                          ~16     ~16, ->58
        45    >   INIT_FCALL                                               'strripos'
        46        SEND_VAR                                                 !0
        47        SEND_VAL                                                 '%2F%2F'
        48        DO_ICALL                                         $17     
        49        INIT_FCALL                                               'strripos'
        50        SEND_VAR                                                 !0
        51        INIT_FCALL                                               'chr'
        52        SEND_VAL                                                 10
        53        DO_ICALL                                         $18     
        54        SEND_VAR                                                 $18
        55        DO_ICALL                                         $19     
        56        IS_SMALLER                                       ~20     $19, $17
        57        BOOL                                             ~16     ~20
        58    >   BOOL                                             ~11     ~16
        59    > > JMPZ                                                     ~11, ->62
  12    60    >   ECHO                                                     'en+commentaire+%21'
        61      > JMP                                                      ->63
  14    62    >   ECHO                                                     'ok'
        63    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0