3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.11 ms | 1395 KiB | 21 Q