3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime('yesterday'); $yesterday = clone $now; $interval = $future_date->diff($yesterday); echo $interval->format("%a days, %h hours, %i minutes, %s seconds");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O7B0D
function name:  (null)
number of ops:  15
compiled vars:  !0 = $now, !1 = $yesterday, !2 = $interval, !3 = $future_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'DateTime'
          1        SEND_VAL_EX                                              'yesterday'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    3     4        CLONE                                            ~7      !0
          5        ASSIGN                                                   !1, ~7
    6     6        INIT_METHOD_CALL                                         !3, 'diff'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0  $9      
          9        ASSIGN                                                   !2, $9
    8    10        INIT_METHOD_CALL                                         !2, 'format'
         11        SEND_VAL_EX                                              '%25a+days%2C+%25h+hours%2C+%25i+minutes%2C+%25s+seconds'
         12        DO_FCALL                                      0  $11     
         13        ECHO                                                     $11
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.55 ms | 1393 KiB | 13 Q