3v4l.org

run code in 300+ PHP versions simultaneously
<?php function easterOrthodox_date($year) { $a = $year % 4; $b = $year % 7; $c = $year % 19; $d = (19 * $c + 15) % 30; $e = (2 * $a + 4 * $b - $d + 34) % 7; $month = floor(($d + $e + 114) / 31); $day = (($d + $e + 114) % 31) + 1; $de = mktime(0, 0, 0, $month, $day + 13, $year); return $de; } $selYear = 2014; $EasterOrth = date('Y-m-d', easterOrthodox_date($selYear)); echo $EasterOrth;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bPgJQ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $selYear, !1 = $EasterOrth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSIGN                                                   !0, 2014
   19     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        INIT_FCALL                                               'easterorthodox_date'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0  $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
   21     9        ECHO                                                     !1
         10      > RETURN                                                   1

Function easterorthodox_date:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bPgJQ
function name:  easterOrthodox_date
number of ops:  42
compiled vars:  !0 = $year, !1 = $a, !2 = $b, !3 = $c, !4 = $d, !5 = $e, !6 = $month, !7 = $day, !8 = $de
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        MOD                                              ~9      !0, 4
          2        ASSIGN                                                   !1, ~9
    5     3        MOD                                              ~11     !0, 7
          4        ASSIGN                                                   !2, ~11
    6     5        MOD                                              ~13     !0, 19
          6        ASSIGN                                                   !3, ~13
    7     7        MUL                                              ~15     !3, 19
          8        ADD                                              ~16     ~15, 15
          9        MOD                                              ~17     ~16, 30
         10        ASSIGN                                                   !4, ~17
    8    11        MUL                                              ~19     !1, 2
         12        MUL                                              ~20     !2, 4
         13        ADD                                              ~21     ~19, ~20
         14        SUB                                              ~22     ~21, !4
         15        ADD                                              ~23     ~22, 34
         16        MOD                                              ~24     ~23, 7
         17        ASSIGN                                                   !5, ~24
    9    18        INIT_FCALL                                               'floor'
         19        ADD                                              ~26     !4, !5
         20        ADD                                              ~27     ~26, 114
         21        DIV                                              ~28     ~27, 31
         22        SEND_VAL                                                 ~28
         23        DO_ICALL                                         $29     
         24        ASSIGN                                                   !6, $29
   10    25        ADD                                              ~31     !4, !5
         26        ADD                                              ~32     ~31, 114
         27        MOD                                              ~33     ~32, 31
         28        ADD                                              ~34     ~33, 1
         29        ASSIGN                                                   !7, ~34
   12    30        INIT_FCALL                                               'mktime'
         31        SEND_VAL                                                 0
         32        SEND_VAL                                                 0
         33        SEND_VAL                                                 0
         34        SEND_VAR                                                 !6
         35        ADD                                              ~36     !7, 13
         36        SEND_VAL                                                 ~36
         37        SEND_VAR                                                 !0
         38        DO_ICALL                                         $37     
         39        ASSIGN                                                   !8, $37
   14    40      > RETURN                                                   !8
   15    41*     > RETURN                                                   null

End of function easterorthodox_date

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.84 ms | 1403 KiB | 20 Q