3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sMicrotime = microtime(true); $sMsgId = preg_replace('/^.+\./', '', $sMicrotime); echo '<pre>'; var_dump($sMicrotime); var_dump($sMsgId); echo '</pre>';
Output for 7.0.14, 7.2.0
<pre>float(1391394021.0037) string(4) "0037" </pre>
Output for 7.1.7
<pre>float(1391394021.0055) string(4) "0055" </pre>
Output for 7.1.6
<pre>float(1391394021.0131) string(4) "0131" </pre>
Output for 7.1.5
<pre>float(1391394021.0117) string(4) "0117" </pre>
Output for 5.2.3, 7.1.0
<pre>float(1391394021.0061) string(4) "0061" </pre>
Output for 5.2.10, 7.0.20
<pre>float(1391394021.0026) string(4) "0026" </pre>
Output for 7.0.6
<pre>float(1463855523.7381) string(4) "7381" </pre>
Output for 7.0.5
<pre>float(1459602838.1704) string(4) "1704" </pre>
Output for 7.0.4
<pre>float(1457566793.8974) string(4) "8974" </pre>
Output for 7.0.3
<pre>float(1458258748.5481) string(4) "5481" </pre>
Output for 7.0.2
<pre>float(1458556077.8867) string(4) "8867" </pre>
Output for 7.0.1
<pre>float(1458729561.2435) string(4) "2435" </pre>
Output for 7.0.0
<pre>float(1458997916.7746) string(4) "7746" </pre>
Output for 5.4.23, 5.6.28
<pre>float(1391394021.0043) string(4) "0043" </pre>
Output for 5.6.21
<pre>float(1462220590.9393) string(4) "9393" </pre>
Output for 5.6.20
<pre>float(1460190541.6513) string(4) "6513" </pre>
Output for 5.6.19
<pre>float(1457300661.3975) string(4) "3975" </pre>
Output for 5.6.18
<pre>float(1457947110.9501) string(4) "9501" </pre>
Output for 5.6.17
<pre>float(1458361301.8189) string(4) "8189" </pre>
Output for 5.6.16
<pre>float(1459086939.8184) string(4) "8184" </pre>
Output for 5.6.15
<pre>float(1459176602.3146) string(4) "3146" </pre>
Output for 5.6.14
<pre>float(1459531785.9411) string(4) "9411" </pre>
Output for 5.6.13
<pre>float(1460668645.6196) string(4) "6196" </pre>
Output for 5.6.12
<pre>float(1461149950.7034) string(4) "7034" </pre>
Output for 5.6.11
<pre>float(1461516782.1498) string(4) "1498" </pre>
Output for 5.6.10
<pre>float(1461610878.9107) string(4) "9107" </pre>
Output for 5.6.9
<pre>float(1461805237.1465) string(4) "1465" </pre>
Output for 5.6.8
<pre>float(1462005936.7704) string(4) "7704" </pre>
Output for 5.5.35
<pre>float(1463999482.7655) string(4) "7655" </pre>
Output for 5.5.34
<pre>float(1460298255.3766) string(4) "3766" </pre>
Output for 5.5.33
<pre>float(1457433299.4574) string(4) "4574" </pre>
Output for 5.5.32
<pre>float(1458144871.1994) string(4) "1994" </pre>
Output for 5.5.31
<pre>float(1458458093.9439) string(4) "9439" </pre>
Output for 5.5.30
<pre>float(1459443134.4059) string(4) "4059" </pre>
Output for 5.5.29
<pre>float(1460805807.1452) string(4) "1452" </pre>
Output for 5.5.28
<pre>float(1461246511.0594) string(4) "0594" </pre>
Output for 5.5.27
<pre>float(1461338314.7902) string(4) "7902" </pre>
Output for 5.5.26
<pre>float(1461706984.4812) string(4) "4812" </pre>
Output for 5.5.25
<pre>float(1461907086.4198) string(4) "4198" </pre>
Output for 5.5.24
<pre>float(1464092751.9998) string(4) "9998" </pre>
Output for 5.4.45
<pre>float(1442163981.9629) string(4) "9629" </pre>
Output for 5.4.44
<pre>float(1439657871.3765) string(4) "3765" </pre>
Output for 5.4.43
<pre>float(1439657866.5483) string(4) "5483" </pre>
Output for 5.4.42
<pre>float(1439657865.1065) string(4) "1065" </pre>
Output for 5.4.41
<pre>float(1439657862.8414) string(4) "8414" </pre>
Output for 5.4.40
<pre>float(1431053807.5197) string(4) "5197" </pre>
Output for 5.4.39
<pre>float(1431053806.7548) string(4) "7548" </pre>
Output for 5.4.38
<pre>float(1425274564.559) string(3) "559" </pre>
Output for 5.4.37
<pre>float(1423352652.8086) string(4) "8086" </pre>
Output for 5.4.36
<pre>float(1423352652.451) string(3) "451" </pre>
Output for 5.4.35
<pre>float(1417702663.7048) string(4) "7048" </pre>
Output for 5.4.34
<pre>float(1417702663.3861) string(4) "3861" </pre>
Output for 5.4.32
<pre>float(1409955136.5262) string(4) "5262" </pre>
Output for 5.4.31
<pre>float(1409955130.4203) string(4) "4203" </pre>
Output for 5.4.30
<pre>float(1409955125.4632) string(4) "4632" </pre>
Output for 5.4.29
<pre>float(1409955124.9815) string(4) "9815" </pre>
Output for 5.4.28
<pre>float(1409955124.5091) string(4) "5091" </pre>
Output for 5.4.27
<pre>float(1409955133.5594) string(4) "5594" </pre>
Output for 5.4.26
<pre>float(1409955133.0438) string(4) "0438" </pre>
Output for 5.4.25
<pre>float(1409955131.9848) string(4) "9848" </pre>
Output for 5.3.1, 5.4.24
<pre>float(1391394021.006) string(3) "006" </pre>
Output for 5.4.22
<pre>float(1391394021.0041) string(4) "0041" </pre>
Output for 5.4.21
<pre>float(1391394021.0057) string(4) "0057" </pre>
Output for 5.4.20
<pre>float(1391394021.0049) string(4) "0049" </pre>
Output for 5.4.17, 5.4.19
<pre>float(1391394021.0042) string(4) "0042" </pre>
Output for 5.4.18
<pre>float(1391394021.0046) string(4) "0046" </pre>
Output for 5.4.16
<pre>float(1391394021.0045) string(4) "0045" </pre>
Output for 5.3.21, 5.4.15
<pre>float(1391394021.0094) string(4) "0094" </pre>
Output for 5.2.11, 5.3.2, 5.3.6 - 5.3.8, 5.3.16, 5.3.18, 5.3.24, 5.3.26, 5.4.0, 5.4.9, 5.4.14
<pre>float(1391394021.0024) string(4) "0024" </pre>
Output for 5.4.13
<pre>float(1391394021.0028) string(4) "0028" </pre>
Output for 5.3.13, 5.4.12
<pre>float(1391394021.0027) string(4) "0027" </pre>
Output for 5.2.13, 5.3.9 - 5.3.10, 5.3.22 - 5.3.23, 5.3.25, 5.4.10 - 5.4.11
<pre>float(1391394021.0022) string(4) "0022" </pre>
Output for 5.3.5, 5.3.15, 5.3.28, 5.4.2, 5.4.5 - 5.4.8
<pre>float(1391394021.0023) string(4) "0023" </pre>
Output for 5.1.5, 5.2.8, 5.2.17, 5.4.4
<pre>float(1391394021.002) string(3) "002" </pre>
Output for 5.1.3, 5.3.14, 5.4.3
<pre>float(1391394021.0025) string(4) "0025" </pre>
Output for 5.3.3, 5.3.12, 5.4.1
<pre>float(1391394021.0034) string(4) "0034" </pre>
Output for 5.3.29
<pre>float(1409955125.947) string(3) "947" </pre>
Output for 5.3.27
<pre>float(1391394021.0021) string(4) "0021" </pre>
Output for 5.2.12, 5.3.20
<pre>float(1391394021.003) string(3) "003" </pre>
Output for 5.2.15, 5.3.11, 5.3.19
<pre>float(1391394021.0029) string(4) "0029" </pre>
Output for 5.3.17
<pre>float(1391394021.0032) string(4) "0032" </pre>
Output for 5.3.4
<pre>float(1391394021.0053) string(4) "0053" </pre>
Output for 5.3.0
<pre>float(1391394021.0038) string(4) "0038" </pre>
Output for 5.1.4, 5.1.6, 5.2.0 - 5.2.2, 5.2.5, 5.2.16
<pre>float(1391394021.0017) string(4) "0017" </pre>
Output for 5.1.1, 5.2.7, 5.2.14
<pre>float(1391394021.0016) string(4) "0016" </pre>
Output for 5.2.9
<pre>float(1391394021.0019) string(4) "0019" </pre>
Output for 5.1.2, 5.2.4, 5.2.6
<pre>float(1391394021.0018) string(4) "0018" </pre>
Output for 5.1.0
<pre>float(1391394021.0015) string(4) "0015" </pre>
Output for 5.0.5
<pre>float(1391394021.0008) string(4) "0008" </pre>
Output for 5.0.2, 5.0.4
<pre>float(1391394021.0009) string(4) "0009" </pre>
Output for 5.0.1, 5.0.3
<pre>float(1391394021.0006) string(4) "0006" </pre>
Output for 5.0.0
<pre>float(1391394021.0011) string(4) "0011" </pre>
Output for 4.4.9
<pre>string(21) "0.00010400 1391394021" string(19) "00010400 1391394021" </pre>
Output for 4.4.8
<pre>string(21) "0.00010900 1391394021" string(19) "00010900 1391394021" </pre>
Output for 4.4.7
<pre>string(21) "0.00025300 1391394021" string(19) "00025300 1391394021" </pre>
Output for 4.4.6
<pre>string(21) "0.00023400 1391394021" string(19) "00023400 1391394021" </pre>
Output for 4.4.5
<pre>string(21) "0.00020000 1391394021" string(19) "00020000 1391394021" </pre>
Output for 4.4.4
<pre>string(21) "0.00018700 1391394021" string(19) "00018700 1391394021" </pre>
Output for 4.4.3
<pre>string(21) "0.00026000 1391394021" string(19) "00026000 1391394021" </pre>
Output for 4.4.2
<pre>string(21) "0.00013500 1391394021" string(19) "00013500 1391394021" </pre>
Output for 4.4.1
<pre>string(21) "0.00016500 1391394021" string(19) "00016500 1391394021" </pre>
Output for 4.3.2, 4.4.0
<pre>string(21) "0.00016000 1391394021" string(19) "00016000 1391394021" </pre>
Output for 4.3.11
<pre>string(21) "0.00010600 1391394021" string(19) "00010600 1391394021" </pre>
Output for 4.3.10
<pre>string(21) "0.00013300 1391394021" string(19) "00013300 1391394021" </pre>
Output for 4.3.9
<pre>string(21) "0.00012700 1391394021" string(19) "00012700 1391394021" </pre>
Output for 4.3.8
<pre>string(21) "0.00014700 1391394021" string(19) "00014700 1391394021" </pre>
Output for 4.3.7
<pre>string(21) "0.00012100 1391394021" string(19) "00012100 1391394021" </pre>
Output for 4.3.6
<pre>string(21) "0.00016700 1391394021" string(19) "00016700 1391394021" </pre>
Output for 4.3.5
<pre>string(21) "0.00012400 1391394021" string(19) "00012400 1391394021" </pre>
Output for 4.3.4
<pre>string(21) "0.00015800 1391394021" string(19) "00015800 1391394021" </pre>
Output for 4.3.3
<pre>string(21) "0.00015600 1391394021" string(19) "00015600 1391394021" </pre>
Output for 4.3.1
<pre>string(21) "0.00017800 1391394021" string(19) "00017800 1391394021" </pre>
Output for 4.3.0
<pre>string(21) "0.10399900 1442163980" string(19) "10399900 1442163980" </pre>

preferences:
140.5 ms | 401 KiB | 174 Q