3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = date_create(date('c')); $b = date_create(date('c', time() + 60*15)); echo date_diff($a,$b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dsM5Q
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_create'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'c'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    3     7        INIT_FCALL                                               'date_create'
          8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'c'
         10        INIT_FCALL                                               'time'
         11        DO_ICALL                                         $5      
         12        ADD                                              ~6      $5, 900
         13        SEND_VAL                                                 ~6
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !1, $8
    5    18        INIT_FCALL                                               'date_diff'
         19        SEND_VAR                                                 !0
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $10     
         22        ECHO                                                     $10
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.41 ms | 1395 KiB | 21 Q