3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = 12.34; if(!isset($d) || $d<=0){ echo $d; } $dt = new DateTime(); $dt = $dt->modify('-' . $d . 'days'); echo $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/6uWqU
function name:  (null)
number of ops:  21
compiled vars:  !0 = $d, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 12.34
    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_METHOD_CALL                                         !1, 'getTimeStamp'
         18        DO_FCALL                                      0  $13     
         19        ECHO                                                     $13
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.29 ms | 1394 KiB | 13 Q