3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = '{%[^:}]:%[^}]}}'; var_dump(sscanf('foo', $format, $a, $b), $a, $b); var_dump(sscanf('{foo}', $format, $a, $b), $a, $b); var_dump(sscanf('{foo:bar}', $format, $a, $b), $a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nNlL7
function name:  (null)
number of ops:  35
compiled vars:  !0 = $format, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%25%5B%5E%3A%7D%5D%3A%25%5B%5E%7D%5D%7D%7D'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'sscanf'
          3        SEND_VAL                                                 'foo'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        SEND_REF                                                 !2
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'sscanf'
         14        SEND_VAL                                                 '%7Bfoo%7D'
         15        SEND_VAR                                                 !0
         16        SEND_REF                                                 !1
         17        SEND_REF                                                 !2
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        SEND_VAR                                                 !1
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
    7    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'sscanf'
         25        SEND_VAL                                                 '%7Bfoo%3Abar%7D'
         26        SEND_VAR                                                 !0
         27        SEND_REF                                                 !1
         28        SEND_REF                                                 !2
         29        DO_ICALL                                         $8      
         30        SEND_VAR                                                 $8
         31        SEND_VAR                                                 !1
         32        SEND_VAR                                                 !2
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.08 ms | 1396 KiB | 17 Q