3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 41568; //Excel-Datum im Zahlenformat umwandeln in Datum 1 = 1.1.1900 if (preg_match("/^\d+$/", $value) && intval($value) > 0) $value = date('Y-m-d', (strtotime('1970-01-01 12:00:00') + (($value - 25569) * 86400))); echo $value."<br>";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 9
filename:       /in/TOX7H
function name:  (null)
number of ops:  24
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 41568
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%5Cd%2B%24%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ_EX                                          ~3      $2, ->9
          6    >   CAST                                          4  ~4      !0
          7        IS_SMALLER                                       ~5      0, ~4
          8        BOOL                                             ~3      ~5
          9    > > JMPZ                                                     ~3, ->21
    5    10    >   INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-m-d'
         12        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 '1970-01-01+12%3A00%3A00'
         14        DO_ICALL                                         $6      
         15        SUB                                              ~7      !0, 25569
         16        MUL                                              ~8      ~7, 86400
         17        ADD                                              ~9      $6, ~8
         18        SEND_VAL                                                 ~9
         19        DO_ICALL                                         $10     
         20        ASSIGN                                                   !0, $10
    6    21    >   CONCAT                                           ~12     !0, '%3Cbr%3E'
         22        ECHO                                                     ~12
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.66 ms | 1395 KiB | 19 Q