3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo unixtojd(strtotime('1/May/2014')); echo '<br>'; echo strtotime('1/May/2014') / (86400 + 2440587.5);
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28, 5.6.28, 7.0.14 - 7.1.0
2456798<br>0
Output for 7.0.6
2457512<br>0
Output for 7.0.5
2457481<br>0
Output for 7.0.4
2457458<br>0
Output for 7.0.3
2457466<br>0
Output for 7.0.2
2457469<br>0
Output for 7.0.1
2457471<br>0
Output for 7.0.0
2457474<br>0
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Call to undefined function unixtojd() in /in/Pelh5 on line 2
Process exited with code 255.
Output for 5.6.21
2457511<br>0
Output for 5.6.20
2457488<br>0
Output for 5.6.19
2457455<br>0
Output for 5.6.18
2457462<br>0
Output for 5.6.17
2457467<br>0
Output for 5.6.16
2457475<br>0
Output for 5.6.15
2457476<br>0
Output for 5.6.14
2457480<br>0
Output for 5.6.13
2457494<br>0
Output for 5.6.12
2457498<br>0
Output for 5.6.11
2457501<br>0
Output for 5.6.10
2457504<br>0
Output for 5.6.9
2457506<br>0
Output for 5.6.8
2457508<br>0
Output for 5.6.7
2457534<br>0
Output for 5.5.35
2457531<br>0
Output for 5.5.34
2457489<br>0
Output for 5.5.33
2457456<br>0
Output for 5.5.32
2457464<br>0
Output for 5.5.31
2457468<br>0
Output for 5.5.30
2457479<br>0
Output for 5.5.29
2457495<br>0
Output for 5.5.28
2457499<br>0
Output for 5.5.27
2457500<br>0
Output for 5.5.26
2457505<br>0
Output for 5.5.25
2457507<br>0
Output for 5.5.24
2457532<br>0
Output for 5.4.45
2457283<br>0
Output for 5.4.39 - 5.4.44
2457263<br>0
Output for 5.4.38
2457084<br>0
Output for 5.4.36 - 5.4.37
2457062<br>0
Output for 5.4.34 - 5.4.35
2456996<br>0
Output for 5.3.29, 5.4.29 - 5.4.32
2456907<br>0
Output for 5.1.0 - 5.2.17
2440588<br>0
Output for 4.3.0 - 5.0.5
<br>-3.9572811499859E-07