3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=1;$i<=100;$i++){ $daysAfterTime = floor( abs( strtotime('2014-01-01') - strtotime('2014-01-01 +'.$i.' days') )/(60*60*24)); echo $daysAfterTime.PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
Branch analysis from position: 2
filename:       /in/3htrX
function name:  (null)
number of ops:  25
compiled vars:  !0 = $i, !1 = $daysAfterTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->22
    4     2    >   INIT_FCALL                                               'floor'
          3        INIT_FCALL                                               'abs'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2014-01-01'
          6        DO_ICALL                                         $3      
          7        INIT_FCALL                                               'strtotime'
          8        CONCAT                                           ~4      '2014-01-01+%2B', !0
          9        CONCAT                                           ~5      ~4, '+days'
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $6      
         12        SUB                                              ~7      $3, $6
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                         $8      
         15        DIV                                              ~9      $8, 86400
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !1, $10
    5    19        CONCAT                                           ~12     !1, '%0A'
         20        ECHO                                                     ~12
    3    21        PRE_INC                                                  !0
         22    >   IS_SMALLER_OR_EQUAL                                      !0, 100
         23      > JMPNZ                                                    ~14, ->2
    6    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.85 ms | 1399 KiB | 19 Q