3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=2; $dt=30; $year=2014; $timestamp = mktime(0, 0, 0, "$month", "$dt", "$year"); echo (new \DateTime("@{$timestamp}"))->format('d-m-Y');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6SXlr
function name:  (null)
number of ops:  25
compiled vars:  !0 = $month, !1 = $dt, !2 = $year, !3 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2
    3     1        ASSIGN                                                   !1, 30
    4     2        ASSIGN                                                   !2, 2014
    5     3        INIT_FCALL                                               'mktime'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 0
          7        CAST                                          6  ~7      !0
          8        SEND_VAL                                                 ~7
          9        CAST                                          6  ~8      !1
         10        SEND_VAL                                                 ~8
         11        CAST                                          6  ~9      !2
         12        SEND_VAL                                                 ~9
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !3, $10
    6    15        NEW                                              $12     'DateTime'
         16        NOP                                                      
         17        FAST_CONCAT                                      ~13     '%40', !3
         18        SEND_VAL_EX                                              ~13
         19        DO_FCALL                                      0          
         20        INIT_METHOD_CALL                                         $12, 'format'
         21        SEND_VAL_EX                                              'd-m-Y'
         22        DO_FCALL                                      0  $15     
         23        ECHO                                                     $15
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.44 ms | 1395 KiB | 15 Q