3v4l.org

run code in 300+ PHP versions simultaneously
<?php $origin = date_create('2020-01-01'); $target = date_create(); $interval = date_diff($origin, $target); $iade_hakki=$interval->d; var_export([$interval, $iade_hakki]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BsSgK
function name:  (null)
number of ops:  20
compiled vars:  !0 = $origin, !1 = $target, !2 = $interval, !3 = $iade_hakki
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date_create'
          1        SEND_VAL                                                 '2020-01-01'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    5     4        INIT_FCALL                                               'date_create'
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
    6     7        INIT_FCALL                                               'date_diff'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    7    12        FETCH_OBJ_R                                      ~10     !2, 'd'
         13        ASSIGN                                                   !3, ~10
    9    14        INIT_FCALL                                               'var_export'
         15        INIT_ARRAY                                       ~12     !2
         16        ADD_ARRAY_ELEMENT                                ~12     !3
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
259.01 ms | 1001 KiB | 16 Q