3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $str='online&nbsp;shop'; var_dump(strpos(str_replace("\xc2\xa0", ' ', html_entity_decode($str)), 'online shop'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WXTGR
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'online%26nbsp%3Bshop'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'strpos'
          3        INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 '%C2%A0'
          5        SEND_VAL                                                 '+'
          6        INIT_FCALL                                               'html_entity_decode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        SEND_VAL                                                 'online+shop'
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.99 ms | 1074 KiB | 18 Q