3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = '2017'; $month = '11'; $creditCardExpiryDate = new \DateTime('last seccond of ' . $year . '-' . $month); var_dump($creditCardExpiryDate);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bnmv3
function name:  (null)
number of ops:  13
compiled vars:  !0 = $year, !1 = $month, !2 = $creditCardExpiryDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2017'
    3     1        ASSIGN                                                   !1, '11'
    4     2        NEW                                              $5      'DateTime'
          3        CONCAT                                           ~6      'last+seccond+of+', !0
          4        CONCAT                                           ~7      ~6, '-'
          5        CONCAT                                           ~8      ~7, !1
          6        SEND_VAL_EX                                              ~8
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $5
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.22 ms | 1394 KiB | 15 Q