3v4l.org

run code in 300+ PHP versions simultaneously
<?php $productId = '0001/102/1'; echo sprintf("This is %s", urlencode($productId));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pj2LK
function name:  (null)
number of ops:  10
compiled vars:  !0 = $productId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '0001%2F102%2F1'
    3     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 'This+is+%25s'
          3        INIT_FCALL_BY_NAME                                       '%C2%A0urlencode'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.75 ms | 1394 KiB | 15 Q