3v4l.org

run code in 300+ PHP versions simultaneously
<?php $midnight = clone $endDate; $midnight ->setTime(24, 0, 0) ; $difference = $midnight->diff($now); var_dump($difference->format('%H:%I:%S'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZYtM1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $midnight, !1 = $endDate, !2 = $difference, !3 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CLONE                                            ~4      !1
          1        ASSIGN                                                   !0, ~4
    6     2        INIT_METHOD_CALL                                         !0, 'setTime'
          3        SEND_VAL_EX                                              24
          4        SEND_VAL_EX                                              0
          5        SEND_VAL_EX                                              0
          6        DO_FCALL                                      0          
    9     7        INIT_METHOD_CALL                                         !0, 'diff'
          8        SEND_VAR_EX                                              !3
          9        DO_FCALL                                      0  $7      
         10        ASSIGN                                                   !2, $7
   11    11        INIT_FCALL                                               'var_dump'
         12        INIT_METHOD_CALL                                         !2, 'format'
         13        SEND_VAL_EX                                              '%25H%3A%25I%3A%25S'
         14        DO_FCALL                                      0  $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.3 ms | 1394 KiB | 15 Q