3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fecha = date('Y-m-d'); $nuevafecha = strtotime ( '-3 hour' , strtotime ( $fecha ) ) ; echo date('Y-m-d',$nuevafecha)."\n"; $nuevafecha = date ( 'Y-m-d' , $nuevafecha ); echo $nuevafecha."\n"; ?>
based on NiKIr
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/ZkCLi
function name:  (null)
number of ops:  26
compiled vars:  !0 = $fecha, !1 = $nuevafecha
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'date'
         1        SEND_VAL                                                 'Y-m-d'
         2        DO_ICALL                                         $2      
         3        ASSIGN                                                   !0, $2
   3     4        INIT_FCALL                                               'strtotime'
         5        SEND_VAL                                                 '-3+hour'
         6        INIT_FCALL                                               'strtotime'
         7        SEND_VAR                                                 !0
         8        DO_ICALL                                         $4      
         9        SEND_VAR                                                 $4
        10        DO_ICALL                                         $5      
        11        ASSIGN                                                   !1, $5
   4    12        INIT_FCALL                                               'date'
        13        SEND_VAL                                                 'Y-m-d'
        14        SEND_VAR                                                 !1
        15        DO_ICALL                                         $7      
        16        CONCAT                                           ~8      $7, '%0A'
        17        ECHO                                                     ~8
   5    18        INIT_FCALL                                               'date'
        19        SEND_VAL                                                 'Y-m-d'
        20        SEND_VAR                                                 !1
        21        DO_ICALL                                         $9      
        22        ASSIGN                                                   !1, $9
   6    23        CONCAT                                           ~11     !1, '%0A'
        24        ECHO                                                     ~11
        25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0