3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_string = 'apr 6, 2019'; $end_string = 'mar 16, 2019'; $startdate=ucfirst(strftime ( "%e %h, %Y", strtotime($start_string))); $enddate= ucfirst(strftime ( "%e %h, %Y", strtotime($end_string))); echo "$startdate - $enddate";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JosuC
function name:  (null)
number of ops:  29
compiled vars:  !0 = $start_string, !1 = $end_string, !2 = $startdate, !3 = $enddate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'apr+6%2C+2019'
    3     1        ASSIGN                                                   !1, 'mar+16%2C+2019'
    5     2        INIT_FCALL                                               'ucfirst'
          3        INIT_FCALL                                               'strftime'
          4        SEND_VAL                                                 '%25e+%25h%2C+%25Y'
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    6    13        INIT_FCALL                                               'ucfirst'
         14        INIT_FCALL                                               'strftime'
         15        SEND_VAL                                                 '%25e+%25h%2C+%25Y'
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                         $11     
         21        SEND_VAR                                                 $11
         22        DO_ICALL                                         $12     
         23        ASSIGN                                                   !3, $12
    8    24        ROPE_INIT                                     3  ~15     !2
         25        ROPE_ADD                                      1  ~15     ~15, '+-+'
         26        ROPE_END                                      2  ~14     ~15, !3
         27        ECHO                                                     ~14
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.12 ms | 1400 KiB | 19 Q