3v4l.org

run code in 500+ PHP versions simultaneously
<?php $url = 'http://combined/nature image GREY_120_240_Glossy_OBL Premium.jpg'; $decodeUrl = urlencode($url); $name = basename($url); echo rawurlencode($name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CptPc
function name:  (null)
number of ops:  14
compiled vars:  !0 = $url, !1 = $decodeUrl, !2 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'http%3A%2F%2Fcombined%2Fnature+image+GREY_120_240_Glossy_OBL+Premium.jpg'
    3     1        INIT_FCALL                                                   'urlencode'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !1, $4
    4     5        INIT_FCALL                                                   'basename'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $6      
          8        ASSIGN                                                       !2, $6
    5     9        INIT_FCALL                                                   'rawurlencode'
         10        SEND_VAR                                                     !2
         11        DO_ICALL                                             $8      
         12        ECHO                                                         $8
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159 ms | 1861 KiB | 16 Q