3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "You came in 21st out of 53"; sscanf($str, '%*[^0-9]%d%*[^0-9]%d', $place, $total); var_export(compact(['place', 'total'])); echo "\n---\n"; var_export(sscanf($str, '%*[^0-9]%d%*[^0-9]%d'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GISlU
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str, !1 = $place, !2 = $total
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'You+came+in+21st+out+of+53'
    5     1        INIT_FCALL                                                   'sscanf'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     '%25%2A%5B%5E0-9%5D%25d%25%2A%5B%5E0-9%5D%25d'
          4        SEND_REF                                                     !1
          5        SEND_REF                                                     !2
          6        DO_ICALL                                                     
    7     7        INIT_FCALL                                                   'var_export'
          8        INIT_FCALL                                                   'compact'
          9        SEND_VAL                                                     <array>
         10        DO_ICALL                                             $5      
         11        SEND_VAR                                                     $5
         12        DO_ICALL                                                     
    9    13        ECHO                                                         '%0A---%0A'
   11    14        INIT_FCALL                                                   'var_export'
         15        INIT_FCALL                                                   'sscanf'
         16        SEND_VAR                                                     !0
         17        SEND_VAL                                                     '%25%2A%5B%5E0-9%5D%25d%25%2A%5B%5E0-9%5D%25d'
         18        DO_ICALL                                             $7      
         19        SEND_VAR                                                     $7
         20        DO_ICALL                                                     
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.2 ms | 1867 KiB | 16 Q