3v4l.org

run code in 300+ PHP versions simultaneously
<?php $monday = date('Y-m-d', strtotime('monday this week', strtotime('2020-09-13'))); $friday = date('Y-m-d', strtotime('friday this week', strtotime('2020-09-13'))); var_dump($monday, $friday);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v1ZI7
function name:  (null)
number of ops:  29
compiled vars:  !0 = $monday, !1 = $friday
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 'monday+this+week'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2020-09-13'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    3    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d'
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAL                                                 'friday+this+week'
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 '2020-09-13'
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                         $7      
         21        SEND_VAR                                                 $7
         22        DO_ICALL                                         $8      
         23        ASSIGN                                                   !1, $8
    4    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !0
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
242.49 ms | 1007 KiB | 16 Q