3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "In My Cart : 11 items"; var_export(sscanf(' ' . $string, '%*[^0-9]%d')[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4LAvB
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'In+My+Cart+%3A+11+items'
    4     1        INIT_FCALL                                                   'var_export'
          2        INIT_FCALL                                                   'sscanf'
          3        CONCAT                                               ~2      '+', !0
          4        SEND_VAL                                                     ~2
          5        SEND_VAL                                                     '%25%2A%5B%5E0-9%5D%25d'
          6        DO_ICALL                                             $3      
          7        FETCH_DIM_R                                          ~4      $3, 0
          8        SEND_VAL                                                     ~4
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.44 ms | 1706 KiB | 15 Q