3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = ' '; $result = sscanf($string, '%c%n', $char, $offset); var_dump($result, $char, $offset); var_dump(sscanf($string, '%3c%n'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6t26R
function name:  (null)
number of ops:  21
compiled vars:  !0 = $string, !1 = $result, !2 = $char, !3 = $offset
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '+++++'
    5     1        INIT_FCALL                                                   'sscanf'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     '%25c%25n'
          4        SEND_REF                                                     !2
          5        SEND_REF                                                     !3
          6        DO_ICALL                                             $5      
          7        ASSIGN                                                       !1, $5
    6     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !1
         10        SEND_VAR                                                     !2
         11        SEND_VAR                                                     !3
         12        DO_ICALL                                                     
    8    13        INIT_FCALL                                                   'var_dump'
         14        INIT_FCALL                                                   'sscanf'
         15        SEND_VAR                                                     !0
         16        SEND_VAL                                                     '%253c%25n'
         17        DO_ICALL                                             $8      
         18        SEND_VAR                                                     $8
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169 ms | 3392 KiB | 15 Q