3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = strtotime('01.02.2008'); echo date('Y-m-d', mktime(0, 0, 0, date("m", $date)-1, 1, date("Y", $date)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cc204
function name:  (null)
number of ops:  27
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '01.02.2008'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y-m-d'
          6        INIT_FCALL                                               'mktime'
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 0
         10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'm'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $3      
         14        SUB                                              ~4      $3, 1
         15        SEND_VAL                                                 ~4
         16        SEND_VAL                                                 1
         17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'Y'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $5      
         21        SEND_VAR                                                 $5
         22        DO_ICALL                                         $6      
         23        SEND_VAR                                                 $6
         24        DO_ICALL                                         $7      
         25        ECHO                                                     $7
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.33 ms | 1395 KiB | 19 Q