3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTimeImmutable('now', new DateTimeZone('UTC')); $nowString = $now->format('Y-m-d\TH:i:s.u'); $lockUntilString = $now->modify('+' . (string) 1000 . ' ms')->format('Y-m-d\TH:i:s.u'); print $lockUntilString;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CkK70
function name:  (null)
number of ops:  24
compiled vars:  !0 = $now, !1 = $nowString, !2 = $lockUntilString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTimeImmutable'
          1        SEND_VAL_EX                                              'now'
          2        NEW                                              $4      'DateTimeZone'
          3        SEND_VAL_EX                                              'UTC'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $4
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $3
    4     8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3As.u'
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !1, $8
    5    12        INIT_METHOD_CALL                                         !0, 'modify'
         13        CAST                                          6  ~10     1000
         14        CONCAT                                           ~11     '%2B', ~10
         15        CONCAT                                           ~12     ~11, '+ms'
         16        SEND_VAL_EX                                              ~12
         17        DO_FCALL                                      0  $13     
         18        INIT_METHOD_CALL                                         $13, 'format'
         19        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3As.u'
         20        DO_FCALL                                      0  $14     
         21        ASSIGN                                                   !2, $14
    7    22        ECHO                                                     !2
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.05 ms | 1393 KiB | 13 Q