3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date1 = date_create_from_format("2014-01-04","Y-m-d"); $date2 = date_create_from_format("2014-02-01","Y-m-d"); echo date_diff($date1,$date2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9egjI
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                                                 '2014-01-04'
         2        SEND_VAL                                                 'Y-m-d'
         3        DO_FCALL_BY_NAME                                         
         4        ASSIGN                                                   !0, $2
   3     5        INIT_FCALL                                               'date_create_from_format'
         6        SEND_VAL                                                 '2014-02-01'
         7        SEND_VAL                                                 'Y-m-d'
         8        DO_FCALL_BY_NAME                                         
         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 7.3.0