3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paddedContentType = ' ' . 'javascriptwhatever'; $isJavascriptPresent = strpos(strtolower($paddedContentType), 'javascript'); if ($isJavascriptPresent !== false) { echo 'yeah its there'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/lLBUJ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $paddedContentType, !1 = $isJavascriptPresent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+javascriptwhatever'
    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          !1
         10      > JMPZ                                                     ~6, ->12
    6    11    >   ECHO                                                     'yeah+its+there'
    7    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.94 ms | 1394 KiB | 17 Q