3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date('Y-m-d H:i:s'); $checkInDate = $date->modify('+180 day'); $checkOutDate = $date->modify('+185 day'); print_r($date );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pVEpa
function name:  (null)
number of ops:  16
compiled vars:  !0 = $date, !1 = $checkInDate, !2 = $checkOutDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_METHOD_CALL                                         !0, 'modify'
          5        SEND_VAL_EX                                              '%2B180+day'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    4     8        INIT_METHOD_CALL                                         !0, 'modify'
          9        SEND_VAL_EX                                              '%2B185+day'
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !2, $7
    5    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.35 ms | 1394 KiB | 17 Q