3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = 'Y-m-d\TH:i:s.v\Z'; $stringDateTime = (new \DateTime())->format($format); var_dump(date_create($stringDateTime));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/phLE1
function name:  (null)
number of ops:  14
compiled vars:  !0 = $format, !1 = $stringDateTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Y-m-d%5CTH%3Ai%3As.v%5CZ'
    3     1        NEW                                              $3      'DateTime'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $3, 'format'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'date_create'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.8 ms | 1405 KiB | 17 Q