3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.32 ms | 1394 KiB | 17 Q