3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time1=date('H:i:s',strtotime('now')); $time2= date('H:i:s',strtotime('now')); $timeform= new DateTime($time2); $newtime2= $timeform->format('H:i:s'); echo $total=$time1+$newtime2; var_dump($total);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tjsLJ
function name:  (null)
number of ops:  31
compiled vars:  !0 = $time1, !1 = $time2, !2 = $timeform, !3 = $newtime2, !4 = $total
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'H%3Ai%3As'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 'now'
          4        DO_ICALL                                         $5      
          5        SEND_VAR                                                 $5
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !0, $6
    5     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'H%3Ai%3As'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 'now'
         12        DO_ICALL                                         $8      
         13        SEND_VAR                                                 $8
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !1, $9
    7    16        NEW                                              $11     'DateTime'
         17        SEND_VAR_EX                                              !1
         18        DO_FCALL                                      0          
         19        ASSIGN                                                   !2, $11
    8    20        INIT_METHOD_CALL                                         !2, 'format'
         21        SEND_VAL_EX                                              'H%3Ai%3As'
         22        DO_FCALL                                      0  $14     
         23        ASSIGN                                                   !3, $14
   10    24        ADD                                              ~16     !0, !3
         25        ASSIGN                                           ~17     !4, ~16
         26        ECHO                                                     ~17
   11    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !4
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.76 ms | 1395 KiB | 19 Q