3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = date_diff(date_create('2012-01-02'), date_create('2012-01-01')); echo intval($d1); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8XBDS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $d1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_diff'
          1        INIT_FCALL                                               'date_create'
          2        SEND_VAL                                                 '2012-01-02'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        INIT_FCALL                                               'date_create'
          6        SEND_VAL                                                 '2012-01-01'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    4    11        CAST                                          4  ~5      !0
         12        ECHO                                                     ~5
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.58 ms | 1394 KiB | 17 Q