3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = 1; $day = '2012-10-04'; $mydate = date("Y-m-d",strtotime($day." last Sunday ")); $item_key = $mydate.'_'.$id; $data[$item_key] = array( 'date' => $mydate, 'offer_id' => $id ); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YFlpG
function name:  (null)
number of ops:  19
compiled vars:  !0 = $id, !1 = $day, !2 = $mydate, !3 = $item_key, !4 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, '2012-10-04'
    4     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'Y-m-d'
          4        INIT_FCALL                                               'strtotime'
          5        CONCAT                                           ~7      !1, '+last+Sunday+'
          6        SEND_VAL                                                 ~7
          7        DO_ICALL                                         $8      
          8        SEND_VAR                                                 $8
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !2, $9
    5    11        CONCAT                                           ~11     !2, '_'
         12        CONCAT                                           ~12     ~11, !0
         13        ASSIGN                                                   !3, ~12
    6    14        INIT_ARRAY                                       ~15     !2, 'date'
         15        ADD_ARRAY_ELEMENT                                ~15     !0, 'offer_id'
         16        ASSIGN_DIM                                               !4, !3
         17        OP_DATA                                                  ~15
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.69 ms | 1399 KiB | 17 Q