3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1 = 'teste/teste'; $request = htmlentities(trim($var1), ENT_COMPAT | ENT_HTML5, SYS_ENCODING); var_dump($request); var_dump(strpos($request, '/'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DXU6d
function name:  (null)
number of ops:  22
compiled vars:  !0 = $var1, !1 = $request
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'teste%2Fteste'
    3     1        INIT_FCALL                                               'htmlentities'
          2        INIT_FCALL                                               'trim'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        SEND_VAL                                                 50
          7        FETCH_CONSTANT                                   ~4      'SYS_ENCODING'
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    4    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'strpos'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 '%2F'
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.38 ms | 1395 KiB | 21 Q