3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = date("d-m-Y h:i:s"); $date=date_create($date1); date_modify($date,"+30 minutes"); echo date_format($date,"Y-m-d h:i:s"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QTqv7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $date1, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'd-m-Y+h%3Ai%3As'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'date_create'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    4     8        INIT_FCALL                                               'date_modify'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 '%2B30+minutes'
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'date_format'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 'Y-m-d+h%3Ai%3As'
         15        DO_ICALL                                         $7      
         16        ECHO                                                     $7
    6    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.72 ms | 1394 KiB | 21 Q