3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day = '2012-10-04'; echo 'last sunday : '.date("Y-m-d",strtotime($day." last Sunday ")); $x=1; echo date("Y-m-d",strtotime($day." last Sunday ")).'_'.$x; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HWal3
function name:  (null)
number of ops:  24
compiled vars:  !0 = $day, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2012-10-04'
    3     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        INIT_FCALL                                               'strtotime'
          4        CONCAT                                           ~3      !0, '+last+Sunday+'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      'last+sunday+%3A++', $5
         10        ECHO                                                     ~6
    4    11        ASSIGN                                                   !1, 1
    5    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d'
         14        INIT_FCALL                                               'strtotime'
         15        CONCAT                                           ~8      !0, '+last+Sunday+'
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                         $10     
         20        CONCAT                                           ~11     $10, '_'
         21        CONCAT                                           ~12     ~11, !1
         22        ECHO                                                     ~12
    6    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.04 ms | 1399 KiB | 17 Q