3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('KINT_MB', function_exists('mb_substr')); $time = microtime(true) * 1000; for ($i = 0; $i < 1000; $i++) { if (function_exists('mb_substr')) { } } $time1 = microtime(true) * 1000; for ($i = 0; $i < 1000; $i++) { if (KINT_MB) { } } $time2 = microtime(true) * 1000; var_dump(round($time1 - $time)); var_dump(round($time2 - $time1)); var_dump([$time, $time1, $time2]);
Output for 7.2.6
float(0) float(0) array(3) { [0]=> float(1499270825003.2) [1]=> float(1499270825003.2) [2]=> float(1499270825003.3) }
Output for 7.2.0
float(0) float(0) array(3) { [0]=> float(1499270825003.1) [1]=> float(1499270825003.1) [2]=> float(1499270825003.1) }
Output for 7.1.10
float(0) float(0) array(3) { [0]=> float(1499270825003.2) [1]=> float(1499270825003.3) [2]=> float(1499270825003.3) }
Output for 7.1.7
float(0) float(0) array(3) { [0]=> float(1499270825004.3) [1]=> float(1499270825004.3) [2]=> float(1499270825004.4) }
Output for 7.1.6
float(0) float(0) array(3) { [0]=> float(1499270825020.2) [1]=> float(1499270825020.3) [2]=> float(1499270825020.3) }
Output for 7.1.5
float(0) float(0) array(3) { [0]=> float(1499270825021.1) [1]=> float(1499270825021.2) [2]=> float(1499270825021.2) }
Output for 7.1.4
float(0) float(0) array(3) { [0]=> float(1499270825020.9) [1]=> float(1499270825021) [2]=> float(1499270825021) }
Output for 7.1.3
float(0) float(0) array(3) { [0]=> float(1499270825020) [1]=> float(1499270825020.1) [2]=> float(1499270825020.1) }
Output for 7.1.2
float(0) float(0) array(3) { [0]=> float(1499270825023.5) [1]=> float(1499270825023.5) [2]=> float(1499270825023.6) }
Output for 7.1.1
float(0) float(0) array(3) { [0]=> float(1499270825006.8) [1]=> float(1499270825006.8) [2]=> float(1499270825006.9) }
Output for 7.1.0
float(8) float(0) array(3) { [0]=> float(1499270825008.5) [1]=> float(1499270825016.6) [2]=> float(1499270825016.6) }
Output for 7.0.20
float(0) float(0) array(3) { [0]=> float(1499270825006) [1]=> float(1499270825006.1) [2]=> float(1499270825006.1) }
Output for 7.0.19
float(0) float(0) array(3) { [0]=> float(1499270825004.6) [1]=> float(1499270825004.6) [2]=> float(1499270825004.7) }
Output for 7.0.18
float(0) float(0) array(3) { [0]=> float(1499270825004.9) [1]=> float(1499270825005) [2]=> float(1499270825005.1) }
Output for 7.0.3, 7.0.17
float(0) float(0) array(3) { [0]=> float(1499270825005) [1]=> float(1499270825005.1) [2]=> float(1499270825005.1) }
Output for 7.0.16
float(0) float(0) array(3) { [0]=> float(1499270825005.9) [1]=> float(1499270825006) [2]=> float(1499270825006) }
Output for 7.0.15
float(0) float(0) array(3) { [0]=> float(1499270825007.5) [1]=> float(1499270825007.7) [2]=> float(1499270825007.8) }
Output for 7.0.14
float(0) float(0) array(3) { [0]=> float(1499270825007.4) [1]=> float(1499270825007.4) [2]=> float(1499270825007.5) }
Output for 7.0.13
float(0) float(0) array(3) { [0]=> float(1499270825004.9) [1]=> float(1499270825005) [2]=> float(1499270825005) }
Output for 7.0.12
float(0) float(0) array(3) { [0]=> float(1499270825005.2) [1]=> float(1499270825005.3) [2]=> float(1499270825005.4) }
Output for 7.0.11
float(0) float(0) array(3) { [0]=> float(1499270825006.8) [1]=> float(1499270825006.9) [2]=> float(1499270825006.9) }
Output for 7.0.10
float(0) float(0) array(3) { [0]=> float(1499270825007.6) [1]=> float(1499270825007.7) [2]=> float(1499270825007.7) }
Output for 7.0.9
float(0) float(0) array(3) { [0]=> float(1499270825005.7) [1]=> float(1499270825005.8) [2]=> float(1499270825005.8) }
Output for 7.0.8
float(0) float(0) array(3) { [0]=> float(1499270825005.8) [1]=> float(1499270825005.9) [2]=> float(1499270825005.9) }
Output for 7.0.7
float(0) float(0) array(3) { [0]=> float(1499270825005.1) [1]=> float(1499270825005.2) [2]=> float(1499270825005.2) }
Output for 7.0.6
float(0) float(0) array(3) { [0]=> float(1499270825004.7) [1]=> float(1499270825004.8) [2]=> float(1499270825004.8) }
Output for 7.0.5
float(2) float(0) array(3) { [0]=> float(1499270825006.7) [1]=> float(1499270825009.1) [2]=> float(1499270825009.1) }
Output for 7.0.4
float(7) float(0) array(3) { [0]=> float(1499270825005.9) [1]=> float(1499270825012.8) [2]=> float(1499270825012.8) }
Output for 7.0.2
float(3) float(0) array(3) { [0]=> float(1499270825010.7) [1]=> float(1499270825013.6) [2]=> float(1499270825013.6) }
Output for 7.0.1
float(0) float(0) array(3) { [0]=> float(1499270825010.1) [1]=> float(1499270825010.2) [2]=> float(1499270825010.3) }
Output for 7.0.0
float(0) float(0) array(3) { [0]=> float(1499270825010.2) [1]=> float(1499270825010.3) [2]=> float(1499270825010.5) }
Output for hhvm-3.15.4
float(0) float(0) array(3) { [0]=> float(1499270825401.3) [1]=> float(1499270825401.6) [2]=> float(1499270825401.7) }
Output for 5.6.30
float(0) float(0) array(3) { [0]=> float(1499270825007.6) [1]=> float(1499270825007.9) [2]=> float(1499270825008) }
Output for 5.6.29
float(0) float(0) array(3) { [0]=> float(1499270825006.4) [1]=> float(1499270825006.7) [2]=> float(1499270825006.7) }
Output for 5.6.28
float(0) float(0) array(3) { [0]=> float(1499270825008.1) [1]=> float(1499270825008.5) [2]=> float(1499270825008.6) }
Output for 5.6.27
float(0) float(0) array(3) { [0]=> float(1499270825009.8) [1]=> float(1499270825010.3) [2]=> float(1499270825010.3) }
Output for 5.6.26
float(0) float(0) array(3) { [0]=> float(1499270825009.2) [1]=> float(1499270825009.4) [2]=> float(1499270825009.5) }
Output for 5.6.25
float(0) float(0) array(3) { [0]=> float(1499270825008.3) [1]=> float(1499270825008.6) [2]=> float(1499270825008.7) }
Output for 5.6.22, 5.6.24
float(0) float(0) array(3) { [0]=> float(1499270825005.2) [1]=> float(1499270825005.4) [2]=> float(1499270825005.5) }
Output for 5.6.23
float(0) float(0) array(3) { [0]=> float(1499270825005) [1]=> float(1499270825005.2) [2]=> float(1499270825005.2) }
Output for 5.6.21
float(0) float(0) array(3) { [0]=> float(1499270825006.5) [1]=> float(1499270825006.8) [2]=> float(1499270825006.9) }
Output for 5.6.20
float(1) float(0) array(3) { [0]=> float(1499270825008.6) [1]=> float(1499270825009.2) [2]=> float(1499270825009.2) }
Output for 5.6.19
float(0) float(0) array(3) { [0]=> float(1499270825007.9) [1]=> float(1499270825008.2) [2]=> float(1499270825008.3) }
Output for 5.6.18
float(0) float(0) array(3) { [0]=> float(1499270825005.9) [1]=> float(1499270825006) [2]=> float(1499270825006.1) }
Output for 5.6.17
float(0) float(0) array(3) { [0]=> float(1499270825006) [1]=> float(1499270825006.2) [2]=> float(1499270825006.2) }
Output for 5.6.16
float(0) float(0) array(3) { [0]=> float(1499270825008.4) [1]=> float(1499270825008.6) [2]=> float(1499270825008.7) }
Output for 5.6.15
float(0) float(0) array(3) { [0]=> float(1499270825008.6) [1]=> float(1499270825008.9) [2]=> float(1499270825009) }
Output for 5.6.14
float(0) float(0) array(3) { [0]=> float(1499270825005.7) [1]=> float(1499270825005.9) [2]=> float(1499270825005.9) }
Output for 5.6.5, 5.6.13
float(0) float(0) array(3) { [0]=> float(1499270825005.9) [1]=> float(1499270825006.1) [2]=> float(1499270825006.1) }
Output for 5.6.12
float(0) float(0) array(3) { [0]=> float(1499270825010.5) [1]=> float(1499270825010.8) [2]=> float(1499270825010.9) }
Output for 5.6.11
float(0) float(0) array(3) { [0]=> float(1499270825006.2) [1]=> float(1499270825006.4) [2]=> float(1499270825006.4) }
Output for 5.6.10
float(0) float(0) array(3) { [0]=> float(1499270825008.8) [1]=> float(1499270825009.2) [2]=> float(1499270825009.2) }
Output for 5.6.8 - 5.6.9
float(0) float(0) array(3) { [0]=> float(1499270825008.1) [1]=> float(1499270825008.4) [2]=> float(1499270825008.5) }
Output for 5.6.7
float(0) float(0) array(3) { [0]=> float(1499270825006.6) [1]=> float(1499270825006.8) [2]=> float(1499270825006.8) }
Output for 5.6.6
float(0) float(0) array(3) { [0]=> float(1499270825005.3) [1]=> float(1499270825005.4) [2]=> float(1499270825005.5) }
Output for 5.6.4
float(0) float(0) array(3) { [0]=> float(1499270825005.3) [1]=> float(1499270825005.5) [2]=> float(1499270825005.6) }
Output for 5.6.3
float(0) float(0) array(3) { [0]=> float(1499270825005.1) [1]=> float(1499270825005.4) [2]=> float(1499270825005.4) }
Output for 5.6.2
float(0) float(0) array(3) { [0]=> float(1499270825005.8) [1]=> float(1499270825006) [2]=> float(1499270825006) }
Output for 5.6.1
float(0) float(0) array(3) { [0]=> float(1499270825007.3) [1]=> float(1499270825007.5) [2]=> float(1499270825007.6) }
Output for 5.6.0
float(0) float(0) array(3) { [0]=> float(1499270825007.2) [1]=> float(1499270825007.6) [2]=> float(1499270825007.6) }