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 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VZePn
function name:  (null)
number of ops:  18
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
    6     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              '2014-09-05+13%3A18%3A26'
          6        DO_FCALL                                      0          
          7        INIT_METHOD_CALL                                         $5, 'format'
          8        SEND_VAL_EX                                              'Y-m-d'
          9        DO_FCALL                                      0  $7      
         10        ASSIGN                                                   !1, $7
    8    11        IS_SMALLER                                               !1, !0
         12      > JMPZ                                                     ~9, ->15
   10    13    >   ASSIGN                                                   !2, ''
         14      > JMP                                                      ->17
   13    15    >   ASSIGN                                                   !2, 'fresh_leads'
   14    16        ECHO                                                     'Fresh'
   20    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.54 ms | 1395 KiB | 15 Q