3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( (new DateTime('2014-02-01'))->modify('last monday') ); var_dump( (new DateTime('2014-02-01'))->modify('next sunday') );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AVR7p
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'DateTime'
          2        SEND_VAL_EX                                              '2014-02-01'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $0, 'modify'
          5        SEND_VAL_EX                                              'last+monday'
          6        DO_FCALL                                      0  $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    3     9        INIT_FCALL                                               'var_dump'
         10        NEW                                              $4      'DateTime'
         11        SEND_VAL_EX                                              '2014-02-01'
         12        DO_FCALL                                      0          
         13        INIT_METHOD_CALL                                         $4, 'modify'
         14        SEND_VAL_EX                                              'next+sunday'
         15        DO_FCALL                                      0  $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.72 ms | 1398 KiB | 15 Q