3v4l.org

run code in 300+ PHP versions simultaneously
<?php version_compare(PHP_VERSION, '5.3.0', '>=') or die('SKIP'); $dt = new DateTime('2014-12-02', new DateTimeZone('UTC')); $dt->modify('first day of this month'); echo $dt->format('r');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SoL0p
function name:  (null)
number of ops:  24
compiled vars:  !0 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.0.0'
          2        SEND_VAL                                                 '5.3.0'
          3        SEND_VAL                                                 '%3E%3D'
          4        DO_ICALL                                         $1      
          5      > JMPNZ_EX                                         ~2      $1, ->8
          6    > > EXIT                                                     'SKIP'
          7*       BOOL                                             ~2      <true>
    3     8    >   NEW                                              $3      'DateTime'
          9        SEND_VAL_EX                                              '2014-12-02'
         10        NEW                                              $4      'DateTimeZone'
         11        SEND_VAL_EX                                              'UTC'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $4
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !0, $3
    4    16        INIT_METHOD_CALL                                         !0, 'modify'
         17        SEND_VAL_EX                                              'first+day+of+this+month'
         18        DO_FCALL                                      0          
    5    19        INIT_METHOD_CALL                                         !0, 'format'
         20        SEND_VAL_EX                                              'r'
         21        DO_FCALL                                      0  $9      
         22        ECHO                                                     $9
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.65 ms | 1400 KiB | 15 Q