3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo (new DateTime())->format('Y-m-d'); $azi = date('Y-m-d'); $azi->sub(new DateInterval('P5D')); $lead_time= (new DateTime('2014-09-05 13:18:26'))->format('Y-m-d'); if($lead_time<$azi){ // Leaduri mai vechi $l_class=""; }else{ // Leaduri Fresh $l_class="fresh_leads"; echo "Fresh"; } /* $azi->sub(new DateInterval('P5D')); echo $azi; */
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ei8S2
function name:  (null)
number of ops:  24
compiled vars:  !0 = $azi, !1 = $lead_time, !2 = $l_class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        INIT_METHOD_CALL                                         !0, 'sub'
          5        NEW                                              $5      'DateInterval'
          6        SEND_VAL_EX                                              'P5D'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $5
          9        DO_FCALL                                      0          
    6    10        NEW                                              $8      'DateTime'
         11        SEND_VAL_EX                                              '2014-09-05+13%3A18%3A26'
         12        DO_FCALL                                      0          
         13        INIT_METHOD_CALL                                         $8, 'format'
         14        SEND_VAL_EX                                              'Y-m-d'
         15        DO_FCALL                                      0  $10     
         16        ASSIGN                                                   !1, $10
    8    17        IS_SMALLER                                               !1, !0
         18      > JMPZ                                                     ~12, ->21
   10    19    >   ASSIGN                                                   !2, ''
         20      > JMP                                                      ->23
   13    21    >   ASSIGN                                                   !2, 'fresh_leads'
   14    22        ECHO                                                     'Fresh'
   20    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.78 ms | 1395 KiB | 15 Q