3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['a' => 1, 'b' => 2, 'c' => 3]; $b = new stdClass(); $b->a = 1; $b->b = 2; $b->c = 3; echo microtime(true), PHP_EOL; for ($i = 0; $i < 100000; $i++) { $a['a']; } echo microtime(true), PHP_EOL; for ($i = 0; $i < 100000; $i++) { $b->a; } echo microtime(true), PHP_EOL;
Output for 7.3.1
1499416646.0001 1499416646.0026 1499416646.0052
Output for 7.3.0
1499416646.0001 1499416646.0032 1499416646.0057
Output for 7.2.13
1499416646.0002 1499416646.0074 1499416646.0119
Output for 7.2.12
1499416646.0001 1499416646.0051 1499416646.0088
Output for 7.2.11
1499416646.0071 1499416646.0127 1499416646.0154
Output for 7.2.10
1499416646.0002 1499416646.0044 1499416646.007
Output for 7.2.9
1499416646.0001 1499416646.0041 1499416646.0069
Output for 7.2.1, 7.2.8
1499416646.0001 1499416646.0051 1499416646.0094
Output for 7.2.7
1499416646.0001 1499416646.0046 1499416646.0076
Output for 7.2.6
1499416646.0002 1499416646.0044 1499416646.0078
Output for 7.2.2, 7.2.5
1499416646.0001 1499416646.0046 1499416646.0074
Output for 7.2.4
1499416646.0001 1499416646.0044 1499416646.0089
Output for 7.2.3
1499416646.0001 1499416646.0055 1499416646.0099
Output for 7.2.0
1499416646.0001 1499416646.0036 1499416646.0061
Output for 7.1.25
1499416646.0001 1499416646.0162 1499416646.022
Output for 7.1.21
1499416646.0029 1499416646.0055 1499416646.01
Output for 7.1.20
1499416646.0074 1499416646.01 1499416646.0123
Output for 7.1.19
1499416646.0055 1499416646.0085 1499416646.0111
Output for 7.1.18
1499416646.009 1499416646.012 1499416646.0145
Output for 7.1.17
1499416646.0048 1499416646.0098 1499416646.014
Output for 7.1.16
1499416646.0041 1499416646.0078 1499416646.0114
Output for 7.1.15
1499416646.0053 1499416646.0078 1499416646.01
Output for 7.1.14
1499416646.0029 1499416646.006 1499416646.0087
Output for 7.1.13
1499416646.0039 1499416646.0075 1499416646.0101
Output for 7.1.12
1499416646.0031 1499416646.0057 1499416646.0079
Output for 7.1.11
1499416646.0032 1499416646.0058 1499416646.0081
Output for 7.1.10
1499416646.0069 1499416646.0116 1499416646.0147
Output for 7.1.9
1499416646.0033 1499416646.0057 1499416646.0081
Output for 7.1.8
1499416646.0031 1499416646.0063 1499416646.0091
Output for 7.1.7
1499416646.0031 1499416646.0058 1499416646.0081
Output for 7.1.6
1499416646.0308 1499416646.0333 1499416646.036
Output for 7.1.5
1499416646.0482 1499416646.0511 1499416646.0537
Output for 7.1.4
1499416646.0192 1499416646.0301 1499416646.0352
Output for 7.1.3
1499416646.0287 1499416646.0334 1499416646.0382
Output for 7.1.2
1499416646.0265 1499416646.0312 1499416646.0359
Output for 7.1.1
1499416646.0029 1499416646.0059 1499416646.0081
Output for 7.1.0
1499416646.0031 1499416646.0059 1499416646.0083
Output for 7.0.31
1499416646.0031 1499416646.0134 1499416646.0157
Output for 7.0.30
1499416646.0079 1499416646.0122 1499416646.0145
Output for 7.0.29
1499416646.0122 1499416646.0164 1499416646.0186
Output for 7.0.28
1499416646.0087 1499416646.0117 1499416646.0143
Output for 7.0.27
1499416646.0044 1499416646.0072 1499416646.0097
Output for 7.0.26
1499416646.0049 1499416646.0086 1499416646.0108
Output for 7.0.25
1499416646.0031 1499416646.0073 1499416646.0137
Output for 7.0.24
1499416646.0043 1499416646.0203 1499416646.0306
Output for 7.0.23
1499416646.004 1499416646.0086 1499416646.0122
Output for 7.0.22
1499416646.0045 1499416646.0082 1499416646.0113
Output for 7.0.21
1499416646.0041 1499416646.0087 1499416646.0123
Output for 7.0.20
1499416646.0047 1499416646.0089 1499416646.0112
Output for 7.0.19
1499416646.0038 1499416646.0073 1499416646.0097
Output for 7.0.18
1499416646.0031 1499416646.006 1499416646.0084
Output for 7.0.17
1499416646.0052 1499416646.018 1499416646.0215
Output for 7.0.16
1499416646.0036 1499416646.0079 1499416646.0119
Output for 7.0.15
1499416646.0048 1499416646.0081 1499416646.0107
Output for 7.0.14
1499416646.0029 1499416646.0056 1499416646.0078
Output for 7.0.13
1499416646.0044 1499416646.0086 1499416646.012
Output for 7.0.12
1499416646.0032 1499416646.0059 1499416646.0081
Output for 7.0.11
1499416646.0032 1499416646.0063 1499416646.0087
Output for 7.0.10
1499416646.0039 1499416646.0076 1499416646.0106
Output for 7.0.9
1499416646.0076 1499416646.0111 1499416646.0132
Output for 7.0.8
1499416646.0059 1499416646.0087 1499416646.0109
Output for 7.0.7
1499416646.0048 1499416646.0094 1499416646.0118
Output for 7.0.6
1499416646.0055 1499416646.0115 1499416646.0137
Output for 7.0.5
1499416646.0066 1499416646.0106 1499416646.0139
Output for 7.0.4
1499416646.0056 1499416646.0115 1499416646.0148
Output for 7.0.3
1499416646.0054 1499416646.0107 1499416646.0135
Output for 7.0.2
1499416646.0056 1499416646.0153 1499416646.0193
Output for 7.0.1
1499416646.0105 1499416646.0141 1499416646.018
Output for 7.0.0
1499416646.0059 1499416646.0092 1499416646.0114
Output for hhvm-3.22.0
1499416646.2503 1499416646.2659 1499416646.279
Output for hhvm-3.21.3
1499416646.2334 1499416646.2463 1499416646.2622
Output for hhvm-3.21.0
1499416646.365 1499416646.3737 1499416646.3887
Output for hhvm-3.20.2
1535044037.2473 1535044037.2587 1535044037.2743
Output for hhvm-3.19.2
1535044038.0839 1535044038.1013 1535044038.1198
Output for hhvm-3.18.5
1499416646.2145 1499416646.2332 1499416646.2494
Output for hhvm-3.18.4
1499416646.3037 1499416646.3126 1499416646.3289
Output for hhvm-3.15.4
1499416646.3237 1499416646.3323 1499416646.3501
Output for 5.6.30
1499416646.0044 1499416646.0094 1499416646.0158