3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.86 ms | 1394 KiB | 19 Q