3v4l.org

run code in 300+ PHP versions simultaneously
<?php $last_partition = new DateTime((1452812400000000 / 1000000) - 1); $required_partition = new DateTime(); $required_partition->modify('+10 day'); $interval = date_diff($required_partition, $last_partition); $num_partitions = $interval->format('%a'); echo $num_partitions;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YTrn0
function name:  (null)
number of ops:  21
compiled vars:  !0 = $last_partition, !1 = $required_partition, !2 = $interval, !3 = $num_partitions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DateTime'
          1        SEND_VAL_EX                                              1452812399
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    4     4        NEW                                              $7      'DateTime'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $7
    5     7        INIT_METHOD_CALL                                         !1, 'modify'
          8        SEND_VAL_EX                                              '%2B10+day'
          9        DO_FCALL                                      0          
    6    10        INIT_FCALL                                               'date_diff'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !2, $11
    7    15        INIT_METHOD_CALL                                         !2, 'format'
         16        SEND_VAL_EX                                              '%25a'
         17        DO_FCALL                                      0  $13     
         18        ASSIGN                                                   !3, $13
    9    19        ECHO                                                     !3
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.12 ms | 1395 KiB | 15 Q