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.3.1
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000191 [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.3.0
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000179 [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.2.5, 7.2.13
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000186 [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.2.12
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000132 [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.2.11
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.060929 [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.2.10
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.035889 [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.2.9
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.113503 [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.2.8
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.096629 [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.2.7
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000184 [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.2.6
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.020878 [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.2.4
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.02472 [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.2.3
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000192 [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.2.2
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 9.2E-5 [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.2.1
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000139 [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.2.0
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 9.8E-5 [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.25
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000197 [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.24
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000114 [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.23
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000117 [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.22
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000127 [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.21
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000116 [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.20
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000143 [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.19
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 8.2E-5 [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.18
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000101 [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.17
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.00011 [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.16
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.040439 [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.15
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.008129 [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.14
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.024443 [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, 7.1.13
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.000118 [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.12
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 9.0E-5 [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.11
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 9.6E-5 [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.000115 [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.9
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 9.4E-5 [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.8
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0.032138 [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.2, 7.1.4, 7.1.6
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 9.7E-5 [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.1, 7.1.5
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 8.6E-5 [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.3
wiek 20 DateInterval Object ( [y] => 20 [m] => 9 [d] => 0 [h] => 18 [i] => 4 [s] => 10 [f] => 0 [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.000148 [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.5.0 - 7.0.33
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 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 )