3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateLastActivity = '2014-05-02T15:03:08.227Z'; $test = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z', $dateLastActivity, new DateTimeZone('UTC')); var_dump($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GlWrR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $dateLastActivity, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-05-02T15%3A03%3A08.227Z'
    4     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3As.u%5CZ'
          3        SEND_VAR                                                 !0
          4        NEW                                              $3      'DateTimeZone'
          5        SEND_VAL_EX                                              'UTC'
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $3
          8        DO_FCALL                                      0  $5      
          9        ASSIGN                                                   !1, $5
    5    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.63 ms | 1394 KiB | 15 Q