3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = "1d2h3m"; [$result['day'], $result['hour'], $result['minutes']] = sscanf($time, '%dd%dh%dm'); var_export($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rkNt8
function name:  (null)
number of ops:  19
compiled vars:  !0 = $time, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1d2h3m'
    5     1        INIT_FCALL                                               'sscanf'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%25dd%25dh%25dm'
          4        DO_ICALL                                         $3      
          5        FETCH_LIST_R                                     $4      $3, 0
          6        ASSIGN_DIM                                               !1, 'day'
          7        OP_DATA                                                  $4
          8        FETCH_LIST_R                                     $6      $3, 1
          9        ASSIGN_DIM                                               !1, 'hour'
         10        OP_DATA                                                  $6
         11        FETCH_LIST_R                                     $8      $3, 2
         12        ASSIGN_DIM                                               !1, 'minutes'
         13        OP_DATA                                                  $8
         14        FREE                                                     $3
    6    15        INIT_FCALL                                               'var_export'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.37 ms | 1010 KiB | 15 Q