3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('last monday'))->getTimestamp(); echo (new DateTime('next friday'))->getTimestamp();
Output for 5.4.0 - 5.4.26, 7.0.7 - 7.1.0
13944060001394751600
Output for 5.5.24, 5.6.8, 5.6.21, 7.0.6
14615352001462485600
Output for 5.6.14, 7.0.5
14591160001460066400
Output for 5.5.33, 7.0.4
14573052001457650800
Output for 5.5.32, 7.0.3
14579100001458255600
Output for 5.5.31, 5.6.17, 7.0.2
14579100001458860400
Output for 7.0.1
14585148001458860400
Output for 5.6.15 - 5.6.16, 7.0.0
14585148001459461600
Output for 5.5.34, 5.6.20
14597208001460671200
Output for 5.6.19
14567004001457650800
Output for 5.6.18
14573052001458255600
Output for 5.6.13
14603256001460671200
Output for 5.5.27 - 5.5.28, 5.6.12
14609304001461276000
Output for 5.5.26, 5.6.10 - 5.6.11
14609304001461880800
Output for 5.5.25, 5.6.9
14615352001461880800
Output for 5.6.7
14639544001464300000
Output for 5.5.35
14633496001464300000
Output for 5.5.30
14591160001459461600
Output for 5.5.29
14603256001461276000
Output for 5.4.45
14415768001441922400
Output for 5.4.39 - 5.4.44
14403672001441317600
Output for 5.4.38
14246460001425596400
Output for 5.4.36 - 5.4.37
14228316001423177200
Output for 5.4.34 - 5.4.35
14155740001416524400
Output for 5.4.27 - 5.4.32
14089176001409868000
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/Ma351 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/Ma351 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/Ma351 on line 2
Process exited with code 255.