3v4l.org

run code in 500+ PHP versions simultaneously
<?php $t = "2014-11-28T12:39:36.257642Z"; $d = new DateTime($t); echo "Input: " . $t . "\n"; echo "Microseconds from datetime: ". $d->format('u'); // ends in 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MNSPn
function name:  (null)
number of ops:  14
compiled vars:  !0 = $t, !1 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '2014-11-28T12%3A39%3A36.257642Z'
    4     1        NEW                                                  $3      'DateTime'
          2        SEND_VAR_EX                                                  !0
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !1, $3
    5     5        CONCAT                                               ~6      'Input%3A++', !0
          6        CONCAT                                               ~7      ~6, '%0A'
          7        ECHO                                                         ~7
    6     8        INIT_METHOD_CALL                                             !1, 'format'
          9        SEND_VAL_EX                                                  'u'
         10        DO_FCALL                                          0  $8      
         11        CONCAT                                               ~9      'Microseconds+from+datetime%3A+', $8
         12        ECHO                                                         ~9
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
225.4 ms | 2301 KiB | 8 Q