3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("Europe/Brussels"); $test = 1537430400; //20-09-2018 10:00 $test2 = 1537438500; //20-09-2018 12:15 echo strtotime("next monday", $test); // expected 24-09-2018 10:00 echo " -- "; echo strtotime("next monday", $test2); // expected 24-09-2018 12:15
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k79JM
function name:  (null)
number of ops:  17
compiled vars:  !0 = $test, !1 = $test2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FBrussels'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, 1537430400
    6     4        ASSIGN                                                   !1, 1537438500
    8     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 'next+monday'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ECHO                                                     $5
    9    10        ECHO                                                     '+--+'
   10    11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 'next+monday'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $6      
         15        ECHO                                                     $6
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.57 ms | 1399 KiB | 17 Q