3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = date("Y-m-d h:i:s"); $start = date_create('2016-10-26 12:01:00'); $end = date_create($now); $diff=date_diff($end,$start); print_r($diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P2oPB
function name:  (null)
number of ops:  21
compiled vars:  !0 = $now, !1 = $start, !2 = $end, !3 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+h%3Ai%3As'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        INIT_FCALL                                               'date_create'
          5        SEND_VAL                                                 '2016-10-26+12%3A01%3A00'
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    5     8        INIT_FCALL                                               'date_create'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    6    12        INIT_FCALL                                               'date_diff'
         13        SEND_VAR                                                 !2
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !3, $10
    8    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.74 ms | 1005 KiB | 17 Q