3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "20x9999,24x65,40x5"; $one = []; $two = []; foreach (explode(',', $str) as $set) { sscanf($set, '%dx%d', $one[], $two[]); } var_dump($one, $two);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/sF8no
function name:  (null)
number of ops:  24
compiled vars:  !0 = $str, !1 = $one, !2 = $two, !3 = $set
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '20x9999%2C24x65%2C40x5'
    5     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%2C'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7      > FE_RESET_R                                       $8      $7, ->18
          8    > > FE_FETCH_R                                               $8, !3, ->18
    8     9    >   INIT_FCALL                                               'sscanf'
         10        SEND_VAR                                                 !3
         11        SEND_VAL                                                 '%25dx%25d'
         12        FETCH_DIM_W                                      $9      !1
         13        SEND_REF                                                 $9
         14        FETCH_DIM_W                                      $10     !2
         15        SEND_REF                                                 $10
         16        DO_ICALL                                                 
    7    17      > JMP                                                      ->8
         18    >   FE_FREE                                                  $8
   10    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
234.29 ms | 1012 KiB | 16 Q