3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'producturl.php?id=736375493?=tm'; var_dump( sscanf($str, '%*[^?]?id=%d')[0] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xbf8j
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'producturl.php%3Fid%3D736375493%3F%3Dtm'
    4     1        INIT_FCALL                                                   'var_dump'
    5     2        INIT_FCALL                                                   'sscanf'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     '%25%2A%5B%5E%3F%5D%3Fid%3D%25d'
          5        DO_ICALL                                             $2      
          6        FETCH_DIM_R                                          ~3      $2, 0
          7        SEND_VAL                                                     ~3
    4     8        DO_ICALL                                                     
    6     9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.94 ms | 1750 KiB | 15 Q