3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = \DateTime::createFromFormat('c', '2014-05-28T22:02:04+02:00'); $b = new \DateTime(strtotime('2014-05-28T22:02:04+02:00')); var_dump($a,$b,date('c'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sTZpO
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 'c'
          2        SEND_VAL                                                 '2014-05-28T22%3A02%3A04%2B02%3A00'
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    3     5        NEW                                              $4      'DateTime'
          6        INIT_FCALL                                               'strtotime'
          7        SEND_VAL                                                 '2014-05-28T22%3A02%3A04%2B02%3A00'
          8        DO_ICALL                                         $5      
          9        SEND_VAR_NO_REF_EX                                       $5
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $4
    5    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !1
         15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'c'
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.18 ms | 1395 KiB | 19 Q