3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'Monday, September 28, 2009'; $time = strtotime($s); $start = strtotime('last sunday, 12pm', $time); $end = strtotime('next saturday, 11:59am', $time); $format = 'l, F j, Y g:i A'; $start_day = date($format, $start); $end_day = date($format, $end); header('Content-Type: text/plain'); echo "Input: $s\nOutput: $start_day - $end_day"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NesoP
function name:  (null)
number of ops:  37
compiled vars:  !0 = $s, !1 = $time, !2 = $start, !3 = $end, !4 = $format, !5 = $start_day, !6 = $end_day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Monday%2C+September+28%2C+2009'
    4     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $8      
          4        ASSIGN                                                   !1, $8
    5     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 'last+sunday%2C+12pm'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !2, $10
    6    10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 'next+saturday%2C+11%3A59am'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $12     
         14        ASSIGN                                                   !3, $12
    7    15        ASSIGN                                                   !4, 'l%2C+F+j%2C+Y+g%3Ai+A'
    8    16        INIT_FCALL                                               'date'
         17        SEND_VAR                                                 !4
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $15     
         20        ASSIGN                                                   !5, $15
    9    21        INIT_FCALL                                               'date'
         22        SEND_VAR                                                 !4
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $17     
         25        ASSIGN                                                   !6, $17
   10    26        INIT_FCALL                                               'header'
         27        SEND_VAL                                                 'Content-Type%3A+text%2Fplain'
         28        DO_ICALL                                                 
   11    29        ROPE_INIT                                     6  ~21     'Input%3A+'
         30        ROPE_ADD                                      1  ~21     ~21, !0
         31        ROPE_ADD                                      2  ~21     ~21, '%0AOutput%3A+'
         32        ROPE_ADD                                      3  ~21     ~21, !5
         33        ROPE_ADD                                      4  ~21     ~21, '+-+'
         34        ROPE_END                                      5  ~20     ~21, !6
         35        ECHO                                                     ~20
   13    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.86 ms | 1396 KiB | 19 Q