3v4l.org

run code in 300+ PHP versions simultaneously
<?php $second = new DateTime("now"); var_dump($second); $second = new DateTime($second->format("Y/m/d H:i:s")); var_dump($second);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mbm51
function name:  (null)
number of ops:  18
compiled vars:  !0 = $second
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTime'
          1        SEND_VAL_EX                                              'now'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    5     7        NEW                                              $5      'DateTime'
          8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'Y%2Fm%2Fd+H%3Ai%3As'
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR_NO_REF_EX                                       $6
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !0, $5
    6    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.76 ms | 1394 KiB | 15 Q