3v4l.org

run code in 300+ PHP versions simultaneously
<?php sscanf('foo,bar,2600', '%s,%s,%d', $foo, $bar, $baz); var_dump($foo, $bar, $baz); sscanf('foo,bar,2600', '%20[^,],%20[^,],%d', $foo, $bar, $baz); var_dump($foo, $bar, $baz);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PNEok
function name:  (null)
number of ops:  25
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'sscanf'
          1        SEND_VAL                                                 'foo%2Cbar%2C2600'
          2        SEND_VAL                                                 '%25s%2C%25s%2C%25d'
          3        SEND_REF                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    3     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'sscanf'
         13        SEND_VAL                                                 'foo%2Cbar%2C2600'
         14        SEND_VAL                                                 '%2520%5B%5E%2C%5D%2C%2520%5B%5E%2C%5D%2C%25d'
         15        SEND_REF                                                 !0
         16        SEND_REF                                                 !1
         17        SEND_REF                                                 !2
         18        DO_ICALL                                                 
    6    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        SEND_VAR                                                 !1
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.93 ms | 1399 KiB | 17 Q