3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = new DateTime(date('Y-m-d')); $tomorrow = new DateTime('2014-04-24'); echo $today - $tomorrow;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q7GjC
function name:  (null)
number of ops:  14
compiled vars:  !0 = $today, !1 = $tomorrow
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        DO_ICALL                                         $3      
          4        SEND_VAR_NO_REF_EX                                       $3
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
    3     7        NEW                                              $6      'DateTime'
          8        SEND_VAL_EX                                              '2014-04-24'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
    4    11        SUB                                              ~9      !0, !1
         12        ECHO                                                     ~9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.22 ms | 1385 KiB | 15 Q