3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dayZ = null; $dayZ = strtotime("monday this week", (!empty($dayZ)) ? 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 = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7ECNa
function name:  (null)
number of ops:  25
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        ISSET_ISEMPTY_CV                                 ~2      !0
          4        BOOL_NOT                                         ~3      ~2
          5      > JMPZ                                                     ~3, ->11
          6    >   INIT_FCALL                                               'strtotime'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        QM_ASSIGN                                        ~5      $4
         10      > JMP                                                      ->14
         11    >   INIT_FCALL                                               'time'
         12        DO_ICALL                                         $6      
         13        QM_ASSIGN                                        ~5      $6
         14    >   SEND_VAL                                                 ~5
         15        DO_ICALL                                         $7      
         16        ASSIGN                                                   !0, $7
    5    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $9      
         22        SEND_VAR                                                 $9
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.56 ms | 1395 KiB | 21 Q