3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTimeImmutable('2014-05'); $date2 = $date->modify('first day of next month midnight - 1 second'); var_dump($date2->format('U')); var_dump($date2->format('c')); var_dump($date2->getTimestamp()); var_dump($date2->format('U')); var_dump($date2->format('c'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rZD24
function name:  (null)
number of ops:  38
compiled vars:  !0 = $date, !1 = $date2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTimeImmutable'
          1        SEND_VAL_EX                                              '2014-05'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'modify'
          5        SEND_VAL_EX                                              'first+day+of+next+month+midnight+-+1+second'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    6     8        INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !1, 'format'
         10        SEND_VAL_EX                                              'U'
         11        DO_FCALL                                      0  $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        INIT_METHOD_CALL                                         !1, 'format'
         16        SEND_VAL_EX                                              'c'
         17        DO_FCALL                                      0  $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                                 
    8    20        INIT_FCALL                                               'var_dump'
         21        INIT_METHOD_CALL                                         !1, 'getTimestamp'
         22        DO_FCALL                                      0  $11     
         23        SEND_VAR                                                 $11
         24        DO_ICALL                                                 
    9    25        INIT_FCALL                                               'var_dump'
         26        INIT_METHOD_CALL                                         !1, 'format'
         27        SEND_VAL_EX                                              'U'
         28        DO_FCALL                                      0  $13     
         29        SEND_VAR                                                 $13
         30        DO_ICALL                                                 
   10    31        INIT_FCALL                                               'var_dump'
         32        INIT_METHOD_CALL                                         !1, 'format'
         33        SEND_VAL_EX                                              'c'
         34        DO_FCALL                                      0  $15     
         35        SEND_VAR                                                 $15
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.93 ms | 1446 KiB | 14 Q