3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo array_sum(array_fill(0, date_diff(date_create('2022-06-06'), date_create('2023-06-04'))->format('%a'), 89));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fmQsJ
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_sum'
          1        INIT_FCALL                                               'array_fill'
          2        SEND_VAL                                                 0
          3        INIT_FCALL                                               'date_diff'
          4        INIT_FCALL                                               'date_create'
          5        SEND_VAL                                                 '2022-06-06'
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        INIT_FCALL                                               'date_create'
          9        SEND_VAL                                                 '2023-06-04'
         10        DO_ICALL                                         $1      
         11        SEND_VAR                                                 $1
         12        DO_ICALL                                         $2      
         13        INIT_METHOD_CALL                                         $2, 'format'
         14        SEND_VAL_EX                                              '%25a'
         15        DO_FCALL                                      0  $3      
         16        SEND_VAR                                                 $3
         17        SEND_VAL                                                 89
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
         20        DO_ICALL                                         $5      
         21        ECHO                                                     $5
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.13 ms | 1013 KiB | 17 Q