3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = microtime(true); $arr = array(1, 2, 3); $x = &$arr[2]; for ($i = 0; $i < 100000; ++$i) $x; printf("%0.04f\n", microtime(true) - $t); $t = microtime(true); $arr = array(1, 2, 3); for ($i = 0; $i < 100000; ++$i) $arr[2]; printf("%0.04f\n", microtime(true) - $t);
Output for 7.1.0
0.0007 0.0015
Output for 7.0.14
0.0010 0.0024
Output for 7.0.10
0.0009 0.0023
Output for 7.0.9
0.0008 0.0021
Output for 7.0.8
0.0011 0.0028
Output for 7.0.7
0.0006 0.0013
Output for 7.0.6
0.0008 0.0018
Output for 7.0.2, 7.0.5
0.0007 0.0016
Output for 7.0.4
0.0011 0.0022
Output for 7.0.3
0.0008 0.0020
Output for 7.0.1
0.0008 0.0019
Output for 7.0.0
0.0005 0.0013
Output for 5.5.11, 5.5.18, 5.5.30, 5.6.8, 5.6.11, 5.6.28
0.0027 0.0049
Output for 5.6.25
0.0023 0.0042
Output for 5.6.24
0.0026 0.0045
Output for 5.5.8, 5.5.27, 5.5.37, 5.6.23
0.0029 0.0052
Output for 5.6.22
0.0020 0.0041
Output for 5.6.21
0.0030 0.0052
Output for 5.6.20
0.0018 0.0039
Output for 5.4.30, 5.5.1, 5.6.19
0.0023 0.0041
Output for 5.6.1, 5.6.18
0.0029 0.0050
Output for 5.5.24, 5.6.15, 5.6.17
0.0017 0.0031
Output for 5.6.16
0.0019 0.0042
Output for 5.6.14
0.0021 0.0041
Output for 5.6.13
0.0024 0.0041
Output for 5.5.6, 5.6.2, 5.6.12
0.0021 0.0040
Output for 5.6.7, 5.6.10
0.0027 0.0042
Output for 5.4.40, 5.6.9
0.0021 0.0037
Output for 5.5.33, 5.6.6
0.0029 0.0051
Output for 5.6.5
0.0032 0.0056
Output for 5.6.4
0.0026 0.0048
Output for 5.6.3
0.0026 0.0046
Output for 5.5.15, 5.6.0
0.0017 0.0032
Output for 5.5.38
0.0028 0.0053
Output for 5.5.36
0.0030 0.0055
Output for 5.5.35
0.0028 0.0042
Output for 5.5.34
0.0026 0.0040
Output for 5.5.32
0.0024 0.0043
Output for 5.5.31
0.0021 0.0038
Output for 5.5.29
0.0023 0.0040
Output for 5.5.28
0.0022 0.0042
Output for 5.5.26
0.0020 0.0035
Output for 5.5.3, 5.5.25
0.0020 0.0037
Output for 5.5.23
0.0020 0.0034
Output for 5.5.22
0.0022 0.0040
Output for 5.5.12, 5.5.21
0.0026 0.0044
Output for 5.5.20
0.0026 0.0049
Output for 5.5.19
0.0019 0.0038
Output for 5.5.16
0.0026 0.0047
Output for 5.5.14
0.0021 0.0035
Output for 5.4.43, 5.5.13
0.0027 0.0047
Output for 5.5.10
0.0020 0.0054
Output for 5.5.9
0.0028 0.0051
Output for 5.5.7
0.0028 0.0049
Output for 5.5.5
0.0022 0.0044
Output for 5.5.4
0.0028 0.0052
Output for 5.5.2
0.0030 0.0054
Output for 5.5.0
0.0020 0.0038
Output for 5.4.45
0.0024 0.0037
Output for 5.4.44
0.0025 0.0047
Output for 5.4.42
0.0029 0.0047
Output for 5.4.41
0.0034 0.0047
Output for 5.4.16, 5.4.39
0.0033 0.0055
Output for 5.4.38
0.0028 0.0048
Output for 5.4.37
0.0029 0.0049
Output for 5.4.36
0.0035 0.0057
Output for 5.4.35
0.0036 0.0063
Output for 5.4.34
0.0026 0.0041
Output for 5.4.32
0.0031 0.0050
Output for 5.4.10, 5.4.31
0.0027 0.0045
Output for 5.4.29
0.0024 0.0039
Output for 5.4.28
0.0033 0.0042
Output for 5.4.27
0.0031 0.0048
Output for 5.4.26
0.0035 0.0056
Output for 5.4.25
0.0031 0.0054
Output for 5.3.21, 5.4.24
0.0037 0.0054
Output for 5.4.23
0.0033 0.0054
Output for 5.4.2, 5.4.22
0.0034 0.0055
Output for 5.4.9, 5.4.14, 5.4.21
0.0025 0.0041
Output for 5.4.20
0.0022 0.0041
Output for 5.4.19
0.0035 0.0058
Output for 5.4.18
0.0032 0.0050
Output for 5.4.17
0.0021 0.0036
Output for 5.4.15
0.0033 0.0057
Output for 5.4.13
0.0022 0.0038
Output for 5.4.12
0.0023 0.0037
Output for 5.4.8, 5.4.11
0.0023 0.0038
Output for 5.4.7
0.0029 0.0045
Output for 5.4.6
0.0030 0.0051
Output for 5.4.5
0.0030 0.0053
Output for 5.4.4
0.0030 0.0049
Output for 5.4.3
0.0030 0.0057
Output for 5.4.1
0.0034 0.0054
Output for 5.4.0
0.0025 0.0042
Output for 5.3.22, 5.3.29
0.0035 0.0051
Output for 5.3.28
0.0037 0.0055
Output for 5.3.27
0.0037 0.0053
Output for 5.3.26
0.0040 0.0046
Output for 5.3.25
0.0027 0.0096
Output for 5.3.24
0.0040 0.0054
Output for 5.3.15, 5.3.23
0.0036 0.0054
Output for 5.3.20
0.0027 0.0043
Output for 5.3.19
0.0036 0.0052
Output for 5.3.18
0.0036 0.0056
Output for 5.3.17
0.0030 0.0046
Output for 5.3.16
0.0037 0.0050
Output for 5.3.14
0.0039 0.0057
Output for 5.3.13
0.0029 0.0040
Output for 5.3.12
0.0030 0.0045
Output for 5.3.11
0.0025 0.0035
Output for 5.3.10
0.0034 0.0050
Output for 5.3.9
0.0048 0.0051
Output for 5.3.8
0.0034 0.0044
Output for 5.3.7
0.0036 0.0055
Output for 5.3.6
0.0033 0.0046
Output for 5.3.5
0.0026 0.0038
Output for 5.3.4
0.0036 0.0050
Output for 5.3.3
0.0027 0.0036
Output for 5.3.2
0.0024 0.0034
Output for 5.2.11, 5.3.1
0.0037 0.0051
Output for 5.3.0
0.0031 0.0039
Output for 5.2.17
0.0049 0.0071
Output for 5.2.16
0.0044 0.0060
Output for 5.2.15
0.0057 0.0076
Output for 5.2.14
0.0040 0.0057
Output for 5.2.13
0.0054 0.0067
Output for 5.2.12
0.0051 0.0071
Output for 5.2.10
0.0058 0.0083
Output for 5.2.9
0.0048 0.0073
Output for 5.2.8
0.0052 0.0072
Output for 5.2.0, 5.2.7
0.0050 0.0071
Output for 5.2.6
0.0055 0.0077
Output for 5.2.5
0.0047 0.0062
Output for 5.2.4
0.0033 0.0045
Output for 5.2.3
0.0046 0.0060
Output for 5.2.2
0.0053 0.0075
Output for 5.2.1
0.0052 0.0073
Output for 5.1.6
0.0066 0.0068
Output for 5.1.5
0.0053 0.0073
Output for 5.1.4
0.0054 0.0058
Output for 5.1.3
0.0043 0.0059
Output for 5.1.2
0.0042 0.0054
Output for 5.1.1
0.0055 0.0074
Output for 5.1.0
0.0037 0.0049
Output for 5.0.5
0.0152 0.0159
Output for 5.0.4
0.0179 0.0172
Output for 5.0.3
0.0110 0.0124
Output for 5.0.2
0.0137 0.0159
Output for 5.0.1
0.0083 0.0100
Output for 5.0.0
0.0104 0.0116
Output for 4.4.9
0.0159 0.0181
Output for 4.4.8
0.0104 0.0125
Output for 4.4.7
0.0145 0.0168
Output for 4.4.6
0.0133 0.0154
Output for 4.4.5
0.0217 0.0186
Output for 4.4.4
0.0162 0.0161
Output for 4.4.3
0.0179 0.0200
Output for 4.4.2
0.0118 0.0142
Output for 4.4.1
0.0148 0.0151
Output for 4.4.0
0.0090 0.0107
Output for 4.3.11
0.0177 0.0196
Output for 4.3.10
0.0174 0.0193
Output for 4.3.9
0.0156 0.0170
Output for 4.3.8
0.0154 0.0147
Output for 4.3.7
0.0109 0.0131
Output for 4.3.6
0.0181 0.0183
Output for 4.3.5
0.0142 0.0163
Output for 4.3.4
0.0148 0.0175
Output for 4.3.3
0.0162 0.0164
Output for 4.3.2
0.0144 0.0173
Output for 4.3.1
0.0150 0.0172
Output for 4.3.0
0.0158 0.0164