3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('2016-05-14 16:00:00'); // From database $date2 = new DateTime(); // Today. $interval = $date->diff($date2); echo $interval->format('Skomentowano: %d dni %h godzin %i minut %s sekund temu.');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e7t1r
function name:  (null)
number of ops:  16
compiled vars:  !0 = $date, !1 = $date2, !2 = $interval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '2016-05-14+16%3A00%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    3     4        NEW                                              $6      'DateTime'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
    4     7        INIT_METHOD_CALL                                         !0, 'diff'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $9      
         10        ASSIGN                                                   !2, $9
    5    11        INIT_METHOD_CALL                                         !2, 'format'
         12        SEND_VAL_EX                                              'Skomentowano%3A+%25d+dni+%25h+godzin+%25i+minut+%25s+sekund+temu.'
         13        DO_FCALL                                      0  $11     
         14        ECHO                                                     $11
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.18 ms | 1398 KiB | 13 Q