3v4l.org

run code in 300+ PHP versions simultaneously
<?php $field = 'December 22, 2015 at 5:00 AM'; $newfield = date('D/M/Y', strtotime($field)); if (date('D', strtotime($field)) == date('D')) { echo 'yes'; } else { echo 'no'; } echo $newfield; echo date('D');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uff0W
function name:  (null)
number of ops:  30
compiled vars:  !0 = $field, !1 = $newfield
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'December+22%2C+2015+at+5%3A00+AM'
    3     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'D%2FM%2FY'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    4     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'D'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                         $7      
         16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'D'
         18        DO_ICALL                                         $8      
         19        IS_EQUAL                                                 $7, $8
         20      > JMPZ                                                     ~9, ->23
    5    21    >   ECHO                                                     'yes'
         22      > JMP                                                      ->24
    6    23    >   ECHO                                                     'no'
    7    24    >   ECHO                                                     !1
    8    25        INIT_FCALL                                               'date'
         26        SEND_VAL                                                 'D'
         27        DO_ICALL                                         $10     
         28        ECHO                                                     $10
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.42 ms | 1396 KiB | 17 Q