3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = 'yesterday'; $tsbeg = strtotime($date); $tsend = strtotime('next day', $tsbeg); $startdate = date('Y-m-d', $tsbeg); $enddate = date('Y-m-d', $tsend); printf('%s : %s %s', $startdate, $enddate, "\n");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0GU5C
function name:  (null)
number of ops:  27
compiled vars:  !0 = $date, !1 = $tsbeg, !2 = $tsend, !3 = $startdate, !4 = $enddate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'yesterday'
    3     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
    4     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 'next+day'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !2, $8
    5    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-m-d'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !3, $10
    6    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-m-d'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $12     
         19        ASSIGN                                                   !4, $12
    8    20        INIT_FCALL                                               'printf'
         21        SEND_VAL                                                 '%25s+%3A+%25s+%25s'
         22        SEND_VAR                                                 !3
         23        SEND_VAR                                                 !4
         24        SEND_VAL                                                 '%0A'
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.66 ms | 1395 KiB | 19 Q