3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paddedContentType = ' ' . 'javascript'; $isJavascriptPresent = strpos(strtolower($paddedContentType), 'javascript'); if ($isJavascriptPresent !== false || $isJavascriptPresent == 0) { echo 'yeah its there'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 13
filename:       /in/BqZDF
function name:  (null)
number of ops:  16
compiled vars:  !0 = $paddedContentType, !1 = $isJavascriptPresent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+javascript'
    4     1        INIT_FCALL                                               'strpos'
          2        INIT_FCALL                                               'strtolower'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        SEND_VAL                                                 'javascript'
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    5     9        TYPE_CHECK                                  1018  ~6      !1
         10      > JMPNZ_EX                                         ~6      ~6, ->13
         11    >   IS_EQUAL                                         ~7      !1, 0
         12        BOOL                                             ~6      ~7
         13    > > JMPZ                                                     ~6, ->15
    6    14    >   ECHO                                                     'yeah+its+there'
    7    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.29 ms | 1394 KiB | 17 Q