3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('first Monday of next month'); $today = $date->setDate(2014,02,03); echo $dt->format('Y-m-d');
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/XFCVH
function name:  (null)
number of ops:  15
compiled vars:  !0 = $date, !1 = $today, !2 = $dt
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NEW                                              $3      :-6
         1        SEND_VAL_EX                                              'first+Monday+of+next+month'
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $3
   3     4        INIT_METHOD_CALL                                         !0, 'setDate'
         5        SEND_VAL_EX                                              2014
         6        SEND_VAL_EX                                              2
         7        SEND_VAL_EX                                              3
         8        DO_FCALL                                      0  $6      
         9        ASSIGN                                                   !1, $6
   4    10        INIT_METHOD_CALL                                         !2, 'format'
        11        SEND_VAL_EX                                              'Y-m-d'
        12        DO_FCALL                                      0  $8      
        13        ECHO                                                     $8
        14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0