3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '2014-11-21 20:30:00'; $date = new DateTime($date); $month = date('M', $date->getTimestamp()); $day = date('j', $date->getTimestamp()); $small_date = '<span class="month">' . $month . '</span><span class="day">' . $day . '</span>'; echo $small_date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vKA11
function name:  (null)
number of ops:  26
compiled vars:  !0 = $date, !1 = $month, !2 = $day, !3 = $small_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2014-11-21+20%3A30%3A00'
    3     1        NEW                                              $5      'DateTime'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $5
    4     5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'M'
          7        INIT_METHOD_CALL                                         !0, 'getTimestamp'
          8        DO_FCALL                                      0  $8      
          9        SEND_VAR                                                 $8
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !1, $9
    5    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'j'
         14        INIT_METHOD_CALL                                         !0, 'getTimestamp'
         15        DO_FCALL                                      0  $11     
         16        SEND_VAR                                                 $11
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !2, $12
    6    19        CONCAT                                           ~14     '%3Cspan+class%3D%22month%22%3E', !1
         20        CONCAT                                           ~15     ~14, '%3C%2Fspan%3E%3Cspan+class%3D%22day%22%3E'
         21        CONCAT                                           ~16     ~15, !2
         22        CONCAT                                           ~17     ~16, '%3C%2Fspan%3E'
         23        ASSIGN                                                   !3, ~17
    7    24        ECHO                                                     !3
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.28 ms | 1400 KiB | 15 Q