3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = 0; $first = ''; $last = ''; $args = [&$id, &$first, &$last]; $ret = sscanf("42\tFoo Bar", "%d\t%s %s", $args[0], $args[1], $args[2]); var_dump($args, $ret);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2NB88
function name:  (null)
number of ops:  23
compiled vars:  !0 = $id, !1 = $first, !2 = $last, !3 = $args, !4 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, ''
    5     2        ASSIGN                                                   !2, ''
    6     3        INIT_ARRAY                                       ~8      !0
          4        ADD_ARRAY_ELEMENT                                ~8      !1
          5        ADD_ARRAY_ELEMENT                                ~8      !2
          6        ASSIGN                                                   !3, ~8
    7     7        INIT_FCALL                                               'sscanf'
          8        SEND_VAL                                                 '42%09Foo+Bar'
          9        SEND_VAL                                                 '%25d%09%25s+%25s'
         10        FETCH_DIM_W                                      $10     !3, 0
         11        SEND_REF                                                 $10
         12        FETCH_DIM_W                                      $11     !3, 1
         13        SEND_REF                                                 $11
         14        FETCH_DIM_W                                      $12     !3, 2
         15        SEND_REF                                                 $12
         16        DO_ICALL                                         $13     
         17        ASSIGN                                                   !4, $13
    8    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !3
         20        SEND_VAR                                                 !4
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.13 ms | 1000 KiB | 15 Q