3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a_date = "2009-11-23"; echo date("Y-m-t", strtotime($a_date)); echo (new DateTime('2010-01-19')) ->modify('first day of this month') ->format('jS, F Y');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UOTWT
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2009-11-23'
    4     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-t'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
    6     9        NEW                                              $4      'DateTime'
         10        SEND_VAL_EX                                              '2010-01-19'
         11        DO_FCALL                                      0          
    7    12        INIT_METHOD_CALL                                         $4, 'modify'
         13        SEND_VAL_EX                                              'first+day+of+this+month'
         14        DO_FCALL                                      0  $6      
    8    15        INIT_METHOD_CALL                                         $6, 'format'
         16        SEND_VAL_EX                                              'jS%2C+F+Y'
         17        DO_FCALL                                      0  $7      
         18        ECHO                                                     $7
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.48 ms | 940 KiB | 18 Q