3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new \DateTime("2014-02-10"); $date2 = new \DateTime("today"); echo $date->format('Y-m-d H:i:s') . PHP_EOL; echo $date2->format('Y-m-d H:i:s');
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/vHrQk
function name:  (null)
number of ops:  18
compiled vars:  !0 = $date, !1 = $date2
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NEW                                              $2      :-6
         1        SEND_VAL_EX                                              '2014-02-10'
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
   3     4        NEW                                              $5      :-3
         5        SEND_VAL_EX                                              'today'
         6        DO_FCALL                                      0          
         7        ASSIGN                                                   !1, $5
   5     8        INIT_METHOD_CALL                                         !0, 'format'
         9        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
        10        DO_FCALL                                      0  $8      
        11        CONCAT                                           ~9      $8, '%0A'
        12        ECHO                                                     ~9
   6    13        INIT_METHOD_CALL                                         !1, 'format'
        14        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
        15        DO_FCALL                                      0  $10     
        16        ECHO                                                     $10
        17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0