3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTime("2016-01-05"); $b = new DateTime("2016-01-06"); $c = new DateTime("2016-01-07"); var_dump($b-$a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z0uZ6
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '2016-01-05'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        NEW                                              $6      'DateTime'
          5        SEND_VAL_EX                                              '2016-01-06'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    5     8        NEW                                              $9      'DateTime'
          9        SEND_VAL_EX                                              '2016-01-07'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $9
    7    12        INIT_FCALL                                               'var_dump'
         13        SUB                                              ~12     !1, !0
         14        SEND_VAL                                                 ~12
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.14 ms | 1399 KiB | 15 Q