3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = 1.1; if(!isset($d) || $d<=0){ echo $d; } $dt = new DateTime(); $dt = $dt->modify('-' . $d . 'days'); echo date('Y-M-d h:i:s A', $dt->getTimeStamp());
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
Branch analysis from position: 6
filename:       /in/B401s
function name:  (null)
number of ops:  25
compiled vars:  !0 = $d, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1.1
    3     1        ISSET_ISEMPTY_CV                                 ~3      !0
          2        BOOL_NOT                                         ~4      ~3
          3      > JMPNZ_EX                                         ~4      ~4, ->6
          4    >   IS_SMALLER_OR_EQUAL                              ~5      !0, 0
          5        BOOL                                             ~4      ~5
          6    > > JMPZ                                                     ~4, ->8
    4     7    >   ECHO                                                     !0
    6     8    >   NEW                                              $6      'DateTime'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
    7    11        INIT_METHOD_CALL                                         !1, 'modify'
         12        CONCAT                                           ~9      '-', !0
         13        CONCAT                                           ~10     ~9, 'days'
         14        SEND_VAL_EX                                              ~10
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                                   !1, $11
    8    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'Y-M-d%C2%A0h%3Ai%3As%C2%A0A'
         19        INIT_METHOD_CALL                                         !1, 'getTimeStamp'
         20        DO_FCALL                                      0  $13     
         21        SEND_VAR                                                 $13
         22        DO_ICALL                                         $14     
         23        ECHO                                                     $14
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.35 ms | 1387 KiB | 15 Q