3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'profile_test'; print strpos($str, 'profile_'); $str = ' profile_test'; print strpos($str, 'profile_'); $str = '___profile_test'; print strpos($str, 'profile_'); $str = 'asdasdasd'; print strpos($str, 'profile_');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DCVtU
function name:  (null)
number of ops:  25
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'profile_test'
    4     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'profile_'
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
    5     6        ASSIGN                                                   !0, '+profile_test'
    6     7        INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'profile_'
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
    7    12        ASSIGN                                                   !0, '___profile_test'
    8    13        INIT_FCALL                                               'strpos'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 'profile_'
         16        DO_ICALL                                         $6      
         17        ECHO                                                     $6
    9    18        ASSIGN                                                   !0, 'asdasdasd'
   10    19        INIT_FCALL                                               'strpos'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 'profile_'
         22        DO_ICALL                                         $8      
         23        ECHO                                                     $8
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.74 ms | 1395 KiB | 15 Q