3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function rev11__kHz_to_us($kHz) { $kHz_real = $kHz * 1E3; $seconds = (1 / $kHz_real); $us = $seconds * 1E6; return $us; } function rev11__us_to_kHz($us) { $us_real = ($us * 1E-6); $freq = (1 / $us_real); $freq_kHz = $freq / 1E3; return $freq_kHz; } var_dump(rev11__kHz_to_us(rev11__us_to_kHz(33.3333)));
based on VVEim
Output for 5.6.38 - 7.3.0rc4
float(33.3333)