3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(sscanf('a-b-c', '%s-%s-%s', $a, $b, $c)); var_dump(sscanf('a-b-c', '%d-%d-%d', $a2, $b2, $c2)); var_dump($a, $b, $c, $a2, $b2, $c2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RXkiJ
function name:  (null)
number of ops:  29
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $a2, !4 = $b2, !5 = $c2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'sscanf'
          2        SEND_VAL                                                 'a-b-c'
          3        SEND_VAL                                                 '%25s-%25s-%25s'
          4        SEND_REF                                                 !0
          5        SEND_REF                                                 !1
          6        SEND_REF                                                 !2
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'sscanf'
         12        SEND_VAL                                                 'a-b-c'
         13        SEND_VAL                                                 '%25d-%25d-%25d'
         14        SEND_REF                                                 !3
         15        SEND_REF                                                 !4
         16        SEND_REF                                                 !5
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                                 
    6    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !0
         22        SEND_VAR                                                 !1
         23        SEND_VAR                                                 !2
         24        SEND_VAR                                                 !3
         25        SEND_VAR                                                 !4
         26        SEND_VAR                                                 !5
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.43 ms | 1395 KiB | 17 Q