3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obecna = new DateTime (); $roznica = $obecna->diff ( new DateTime ( '1995-02-06')); printf("wiek %d \n", $roznica->y); print_r ($roznica) ; // tam masz publiczna zmienna y inf o wieku...
based on jgp5P
Output for 7.2.0
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.003935 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.1.10
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.004396 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.1.7
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.005687 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.1.6
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.011917 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.1.5
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.010838 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.1.0
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.003982 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.28, 7.0.20
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.0.6
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 25 [h] => 18 [i] => 27 [s] => 37 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7757 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.0.5
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 25 [h] => 6 [i] => 52 [s] => 55 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7727 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.0.4
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 4 [h] => 18 [i] => 39 [s] => 32 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7703 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.0.3
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 12 [h] => 19 [i] => 47 [s] => 55 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7711 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.0.2
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 17 [h] => 1 [i] => 55 [s] => 21 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7716 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.0.1
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 18 [h] => 5 [i] => 35 [s] => 4 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7717 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 7.0.0
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 21 [h] => 7 [i] => 31 [s] => 18 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7720 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.21
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 24 [h] => 13 [i] => 36 [s] => 50 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7756 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.20
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 4 [h] => 5 [i] => 52 [s] => 12 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7734 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.19
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 2 [h] => 2 [i] => 50 [s] => 54 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7701 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.18
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 9 [h] => 11 [i] => 34 [s] => 9 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7708 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.17
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 13 [h] => 23 [i] => 13 [s] => 50 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7712 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.16
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 22 [h] => 8 [i] => 18 [s] => 37 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7721 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.15
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 23 [h] => 9 [i] => 9 [s] => 17 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7722 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.14
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 24 [h] => 11 [i] => 0 [s] => 25 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7726 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.13
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 9 [h] => 15 [i] => 24 [s] => 39 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7739 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.12
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 14 [h] => 5 [i] => 53 [s] => 37 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7744 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.11
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 18 [h] => 12 [i] => 15 [s] => 59 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7748 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.10
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 19 [h] => 14 [i] => 19 [s] => 5 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7749 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.9
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 21 [h] => 19 [i] => 29 [s] => 13 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7751 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.6.8
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 24 [h] => 4 [i] => 21 [s] => 25 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7754 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.35
wiek 21 DateInterval Object ( [y] => 21 [m] => 3 [d] => 16 [h] => 20 [i] => 45 [s] => 1 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7776 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.34
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 5 [h] => 8 [i] => 4 [s] => 4 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7735 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.33
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 3 [h] => 5 [i] => 33 [s] => 54 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7702 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.32
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 11 [h] => 15 [i] => 29 [s] => 25 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7710 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.31
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 15 [h] => 2 [i] => 15 [s] => 36 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7714 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.30
wiek 21 DateInterval Object ( [y] => 21 [m] => 1 [d] => 23 [h] => 11 [i] => 3 [s] => 0 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7725 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.29
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 11 [h] => 5 [i] => 47 [s] => 49 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7741 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.28
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 15 [h] => 9 [i] => 7 [s] => 29 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7745 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.27
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 16 [h] => 10 [i] => 54 [s] => 5 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7746 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.26
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 20 [h] => 17 [i] => 1 [s] => 43 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7750 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.25
wiek 21 DateInterval Object ( [y] => 21 [m] => 2 [d] => 22 [h] => 23 [i] => 54 [s] => 14 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7752 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.5.24
wiek 21 DateInterval Object ( [y] => 21 [m] => 3 [d] => 18 [h] => 6 [i] => 27 [s] => 15 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7778 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.4.45
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 20 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.4.34 - 5.4.44
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 21 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.4.20 - 5.4.32
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 22 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.4.17 - 5.4.19
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 23 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.4.8 - 5.4.16
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 23 [invert] => 1 [days] => 7578 )
Output for 5.3.26, 5.4.0 - 5.4.7
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 24 [invert] => 1 [days] => 7578 )
Output for 5.3.27 - 5.3.29
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 24 [weekday] => 0 [weekday_behavior] => 0 [first_last_day_of] => 0 [invert] => 1 [days] => 7578 [special_type] => 0 [special_amount] => 0 [have_weekday_relative] => 0 [have_special_relative] => 0 )
Output for 5.3.19 - 5.3.25
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 25 [invert] => 1 [days] => 7578 )