3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = new DateTime('now'); $interval = new DateInterval('P255D'); if ($currentDate->sub($interval)->format('dm') === '0101') { echo 'This is programmer\'s day!'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/50UkJ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $currentDate, !1 = $interval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              'now'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    3     4        NEW                                              $5      'DateInterval'
          5        SEND_VAL_EX                                              'P255D'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    4     8        INIT_METHOD_CALL                                         !0, 'sub'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0  $8      
         11        INIT_METHOD_CALL                                         $8, 'format'
         12        SEND_VAL_EX                                              'dm'
         13        DO_FCALL                                      0  $9      
         14        IS_IDENTICAL                                             $9, '0101'
         15      > JMPZ                                                     ~10, ->17
    5    16    >   ECHO                                                     'This+is+programmer%27s+day%21'
    6    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.66 ms | 1393 KiB | 13 Q