3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_start = new DateTime('2014-10-02'); echo $time_start->format('r') . "\n"; $time_start->modify('first day of this month'); echo $time_start->format('r') . "\n"; $time_start->getTimestamp(); echo $time_start->format('r') . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OMHKa
function name:  (null)
number of ops:  25
compiled vars:  !0 = $time_start
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DateTime'
          1        SEND_VAL_EX                                              '2014-10-02'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAL_EX                                              'r'
          6        DO_FCALL                                      0  $4      
          7        CONCAT                                           ~5      $4, '%0A'
          8        ECHO                                                     ~5
    4     9        INIT_METHOD_CALL                                         !0, 'modify'
         10        SEND_VAL_EX                                              'first+day+of+this+month'
         11        DO_FCALL                                      0          
    5    12        INIT_METHOD_CALL                                         !0, 'format'
         13        SEND_VAL_EX                                              'r'
         14        DO_FCALL                                      0  $7      
         15        CONCAT                                           ~8      $7, '%0A'
         16        ECHO                                                     ~8
    6    17        INIT_METHOD_CALL                                         !0, 'getTimestamp'
         18        DO_FCALL                                      0          
    7    19        INIT_METHOD_CALL                                         !0, 'format'
         20        SEND_VAL_EX                                              'r'
         21        DO_FCALL                                      0  $10     
         22        CONCAT                                           ~11     $10, '%0A'
         23        ECHO                                                     ~11
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.46 ms | 1385 KiB | 13 Q