3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = "12345"; $time_start = microtime(true); echo $var[0] . "-" . substr($var,1) . "\n"; $time_end = microtime(true); echo "\nExecution Time: " . $time_end - $time_start . "\n"; $time_start2 = microtime(true); echo str_replace($var[0], $var[0].'-', $var) . "\n"; $time_end2 = microtime(true); echo "\nExecution Time: " . $time_end2 - $time_start2;
Output for 7.1.0
1-2345 Warning: A non-numeric value encountered in /in/nj0KD on line 7 -1364228646.0048 1-2345 Warning: A non-numeric value encountered in /in/nj0KD on line 12 -1364228646.0048
Output for 5.5.26, 7.0.14
1-2345 -1364228646.0036 1-2345 -1364228646.0037
Output for 5.6.12, 5.6.14, 5.6.16, 5.6.21, 7.0.12
1-2345 -1364228646.0036 1-2345 -1364228646.0036
Output for 7.0.11
1-2345 -1364228646.0046 1-2345 -1364228646.0046
Output for 5.4.34, 5.4.38, 7.0.10
1-2345 -1364228646.0047 1-2345 -1364228646.0047
Output for 5.5.18, 5.5.35, 7.0.9
1-2345 -1364228646.0038 1-2345 -1364228646.0038
Output for 5.4.21 - 5.4.22, 5.5.10, 7.0.8
1-2345 -1364228646.0025 1-2345 -1364228646.0025
Output for 7.0.7
1-2345 -1364228646.0058 1-2345 -1364228646.0058
Output for 7.0.6
1-2345 -1364228646.0032 1-2345 -1364228646.0033
Output for 5.4.43, 5.5.16, 5.6.25 - 5.6.26, 7.0.5
1-2345 -1364228646.0033 1-2345 -1364228646.0033
Output for 7.0.4
1-2345 -1364228646.003 1-2345 -1364228646.0031
Output for 5.4.35, 5.4.40, 7.0.3
1-2345 -1364228646.0034 1-2345 -1364228646.0034
Output for 5.5.5, 7.0.2
1-2345 -1364228646.0033 1-2345 -1364228646.0034
Output for 5.4.44 - 5.4.45, 7.0.1
1-2345 -1364228646.0039 1-2345 -1364228646.004
Output for 5.4.18, 5.5.15, 7.0.0
1-2345 -1364228646.003 1-2345 -1364228646.003
Output for 5.6.28
1-2345 -1364228646.0045 1-2345 -1364228646.0046
Output for 5.6.27
1-2345 -1364228646.0043 1-2345 -1364228646.0043
Output for 5.4.36 - 5.4.37, 5.6.1, 5.6.11, 5.6.24
1-2345 -1364228646.0039 1-2345 -1364228646.0039
Output for 5.5.33, 5.6.23
1-2345 -1364228646.0032 1-2345 -1364228646.0032
Output for 5.6.22
1-2345 -1364228646.0046 1-2345 -1364228646.0047
Output for 5.6.20
1-2345 -1364228646.0041 1-2345 -1364228646.0041
Output for 5.6.4, 5.6.18 - 5.6.19
1-2345 -1364228646.0044 1-2345 -1364228646.0045
Output for 5.6.17
1-2345 -1364228646.0048 1-2345 -1364228646.0048
Output for 5.6.15
1-2345 -1364228646.0049 1-2345 -1364228646.005
Output for 5.6.0, 5.6.13
1-2345 -1364228646.0045 1-2345 -1364228646.0045
Output for 5.6.10
1-2345 -1364228646.0043 1-2345 -1364228646.0044
Output for 5.6.9
1-2345 -1364228646.0042 1-2345 -1364228646.0042
Output for 5.6.5 - 5.6.6, 5.6.8
1-2345 -1364228646.004 1-2345 -1364228646.004
Output for 5.6.7
1-2345 -1364228646.0042 1-2345 -1364228646.0043
Output for 5.6.3
1-2345 -1364228646.0037 1-2345 -1364228646.0037
Output for 5.6.2
1-2345 -1364228646.0027 1-2345 -1364228646.0027
Output for 5.5.1, 5.5.38
1-2345 -1364228646.0022 1-2345 -1364228646.0023
Output for 5.4.31, 5.5.23, 5.5.28, 5.5.36 - 5.5.37
1-2345 -1364228646.0035 1-2345 -1364228646.0035
Output for 5.3.9, 5.4.16 - 5.4.17, 5.4.24, 5.4.27 - 5.4.30, 5.5.11, 5.5.34
1-2345 -1364228646.0024 1-2345 -1364228646.0024
Output for 5.5.32
1-2345 -1364228646.0037 1-2345 -1364228646.0038
Output for 5.5.21, 5.5.31
1-2345 -1364228646.0031 1-2345 -1364228646.0031
Output for 5.5.30
1-2345 -1364228646.0034 1-2345 -1364228646.0035
Output for 5.5.29
1-2345 -1364228646.0029 1-2345 -1364228646.003
Output for 5.5.2, 5.5.4, 5.5.7 - 5.5.8, 5.5.12, 5.5.20, 5.5.27
1-2345 -1364228646.0022 1-2345 -1364228646.0022
Output for 5.5.3, 5.5.25
1-2345 -1364228646.0029 1-2345 -1364228646.0029
Output for 5.4.25, 5.5.6, 5.5.24
1-2345 -1364228646.0028 1-2345 -1364228646.0028
Output for 5.4.26, 5.5.22
1-2345 -1364228646.0027 1-2345 -1364228646.0028
Output for 5.5.19
1-2345 -1364228646.0021 1-2345 -1364228646.0022
Output for 5.4.19, 5.5.0, 5.5.14
1-2345 -1364228646.0026 1-2345 -1364228646.0026
Output for 5.4.20, 5.5.13
1-2345 -1364228646.0023 1-2345 -1364228646.0023
Output for 5.4.32, 5.5.9
1-2345 -1364228646.0021 1-2345 -1364228646.0021
Output for 5.4.42
1-2345 -1364228646.0028 1-2345 -1364228646.0029
Output for 5.4.41
1-2345 -1364228646.0056 1-2345 -1364228646.0056
Output for 5.4.39
1-2345 -1364228646.0035 1-2345 -1364228646.0036
Output for 5.4.23
1-2345 -1364228646.0024 1-2345 -1364228646.0025
Output for 5.3.0, 5.4.15
1-2345 -1364228646.0023 1-2345 -1364228646.0024
Output for 5.3.6 - 5.3.8, 5.3.10 - 5.3.13, 5.3.16, 5.3.26, 5.3.28, 5.4.3, 5.4.5, 5.4.7, 5.4.10, 5.4.12, 5.4.14
1-2345 -1364228646.0013 1-2345 -1364228646.0013
Output for 5.3.27, 5.4.13
1-2345 -1364228646.0013 1-2345 -1364228646.0014
Output for 5.1.0, 5.3.19 - 5.3.21, 5.3.23, 5.4.1, 5.4.4, 5.4.6, 5.4.11
1-2345 -1364228646.0011 1-2345 -1364228646.0011
Output for 5.1.1, 5.3.15, 5.4.0, 5.4.9
1-2345 -1364228646.0012 1-2345 -1364228646.0012
Output for 5.2.5, 5.3.2, 5.3.18, 5.4.2, 5.4.8
1-2345 -1364228646.0016 1-2345 -1364228646.0016
Output for 5.3.29
1-2345 -1364228646.0177 1-2345 -1364228646.0177
Output for 5.2.11, 5.2.13, 5.3.5, 5.3.25
1-2345 -1364228646.0014 1-2345 -1364228646.0014
Output for 5.2.6, 5.2.17, 5.3.24
1-2345 -1364228646.0014 1-2345 -1364228646.0015
Output for 5.2.10, 5.3.14, 5.3.22
1-2345 -1364228646.0016 1-2345 -1364228646.0017
Output for 5.3.17
1-2345 -1364228646.0011 1-2345 -1364228646.0012
Output for 5.3.4
1-2345 -1364228646.0019 1-2345 -1364228646.002
Output for 5.3.3
1-2345 -1364228646.0025 1-2345 -1364228646.0026
Output for 5.2.2, 5.3.1
1-2345 -1364228646.002 1-2345 -1364228646.002
Output for 5.2.16
1-2345 -1364228646.0012 1-2345 -1364228646.0013
Output for 5.1.2, 5.1.4 - 5.1.5, 5.2.4, 5.2.15
1-2345 -1364228646.0018 1-2345 -1364228646.0018
Output for 5.1.3, 5.1.6, 5.2.14
1-2345 -1364228646.0018 1-2345 -1364228646.0019
Output for 5.2.12
1-2345 -1364228646.0015 1-2345 -1364228646.0016
Output for 5.2.0, 5.2.7 - 5.2.9
1-2345 -1364228646.0017 1-2345 -1364228646.0017
Output for 5.2.3
1-2345 -1364228646.0019 1-2345 -1364228646.0019
Output for 5.2.1
1-2345 -1364228646.0015 1-2345 -1364228646.0015
Output for 5.0.1 - 5.0.2, 5.0.5
1-2345 -1364228646.0007 1-2345 -1364228646.0007
Output for 5.0.4
1-2345 -1364228646.0008 1-2345 -1364228646.0009
Output for 5.0.3
1-2345 -1364228646.0004 1-2345 -1364228646.0004
Output for 5.0.0
1-2345 -1364228646.0006 1-2345 -1364228646.0007
Output for 4.4.9
1-2345 -0.00015 1-2345 -0.000203
Output for 4.4.8
1-2345 -0.000131 1-2345 -0.000162
Output for 4.4.7
1-2345 -0.000125 1-2345 -0.00018
Output for 4.4.6
1-2345 -0.000146 1-2345 -0.0002
Output for 4.4.5
1-2345 -0.000129 1-2345 -0.000172
Output for 4.4.4
1-2345 -0.000125 1-2345 -0.000173
Output for 4.4.3
1-2345 -0.000133 1-2345 -0.000178
Output for 4.4.2
1-2345 -9.3E-05 1-2345 -0.00013
Output for 4.4.1
1-2345 -0.000134 1-2345 -0.000187
Output for 4.4.0
1-2345 -0.000115 1-2345 -0.000157
Output for 4.3.11
1-2345 -0.000125 1-2345 -0.00017
Output for 4.3.10
1-2345 -0.000129 1-2345 -0.000169
Output for 4.3.9
1-2345 -0.000139 1-2345 -0.000189
Output for 4.3.8
1-2345 -0.00012 1-2345 -0.000163
Output for 4.3.7
1-2345 -9.9E-05 1-2345 -0.000132
Output for 4.3.6
1-2345 -9.7E-05 1-2345 -0.000131
Output for 4.3.5
1-2345 -0.000134 1-2345 -0.000175
Output for 4.3.4
1-2345 -0.000136 1-2345 -0.000176
Output for 4.3.3
1-2345 -0.000119 1-2345 -0.000162
Output for 4.3.2
1-2345 -7.8E-05 1-2345 -0.000104
Output for 4.3.1
1-2345 -0.000125 1-2345 -0.000164
Output for 4.3.0
1-2345 -0.000103 1-2345 -0.000135