3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
234.51 ms | 1002 KiB | 15 Q