3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "++i "; $start = microtime(true); for ($i = 0; $i < 1000000; ++$i); $delta_pre = microtime(true) - $start; printf("%.4F\n", $delta_pre); echo "i++ "; $start = microtime(true); for ($i = 0; $i < 1000000; $i++); $delpa_post = microtime(true) - $start; printf("%.4F\n", $delpa_post); printf("\n%.2F", $delta_pre / $delpa_post * 100); echo "%\n";
Output for 7.1.0
++i 0.0104 i++ 0.0135 77.05%
Output for 7.0.14
++i 0.0091 i++ 0.0131 69.86%
Output for 7.0.10
++i 0.0064 i++ 0.0094 68.02%
Output for 7.0.9
++i 0.0071 i++ 0.0096 73.90%
Output for 7.0.8
++i 0.0079 i++ 0.0101 78.11%
Output for 7.0.7
++i 0.0068 i++ 0.0091 75.03%
Output for 7.0.6
++i 0.0096 i++ 0.0120 80.00%
Output for 7.0.5
++i 0.0095 i++ 0.0102 92.52%
Output for 7.0.4
++i 0.0090 i++ 0.0094 96.03%
Output for 7.0.3
++i 0.0082 i++ 0.0115 70.61%
Output for 7.0.2
++i 0.0081 i++ 0.0120 67.98%
Output for 7.0.1
++i 0.0078 i++ 0.0107 72.63%
Output for 7.0.0
++i 0.0078 i++ 0.0108 72.17%
Output for hhvm-3.12.0
++i 0.0527 i++ 0.0503 104.67%
Output for hhvm-3.10.0
++i 0.0726 i++ 0.0651 111.52%
Output for 5.6.28
++i 0.0264 i++ 0.0504 52.46%
Output for 5.6.25
++i 0.0261 i++ 0.0260 100.16%
Output for 5.6.24
++i 0.0262 i++ 0.0271 96.55%
Output for 5.6.23
++i 0.0270 i++ 0.0300 90.24%
Output for 5.6.22
++i 0.0227 i++ 0.0227 100.32%
Output for 5.6.21
++i 0.0275 i++ 0.0304 90.33%
Output for 5.6.20
++i 0.0512 i++ 0.0344 148.71%
Output for 5.6.19
++i 0.0275 i++ 0.0301 91.54%
Output for 5.6.18
++i 0.0349 i++ 0.0359 97.37%
Output for 5.6.17
++i 0.0292 i++ 0.0299 97.85%
Output for 5.6.16
++i 0.0269 i++ 0.0302 88.95%
Output for 5.6.15
++i 0.0234 i++ 0.0225 103.83%
Output for 5.6.14
++i 0.0219 i++ 0.0257 85.10%
Output for 5.6.13
++i 0.0236 i++ 0.0262 90.08%
Output for 5.6.12
++i 0.0218 i++ 0.0259 84.22%
Output for 5.6.11
++i 0.0218 i++ 0.0240 91.11%
Output for 5.6.10
++i 0.0223 i++ 0.0256 86.94%
Output for 5.6.9
++i 0.0226 i++ 0.0265 85.26%
Output for 5.6.8
++i 0.0238 i++ 0.0249 95.60%
Output for 5.6.7
++i 0.0304 i++ 0.0316 96.29%
Output for 5.6.6
++i 0.0248 i++ 0.0274 90.41%
Output for 5.6.5
++i 0.0266 i++ 0.0302 88.15%
Output for 5.6.4
++i 0.0191 i++ 0.0231 82.86%
Output for 5.6.3
++i 0.0207 i++ 0.0215 96.41%
Output for 5.6.2
++i 0.0218 i++ 0.0257 84.91%
Output for 5.6.1
++i 0.0245 i++ 0.0225 109.08%
Output for 5.6.0
++i 0.0284 i++ 0.0314 90.19%
Output for 5.5.38
++i 0.0246 i++ 0.0280 87.84%
Output for 5.5.37
++i 0.0242 i++ 0.0275 88.12%
Output for 5.5.36
++i 0.0219 i++ 0.0260 83.97%
Output for 5.5.35
++i 0.0181 i++ 0.0217 83.36%
Output for 5.5.34
++i 0.0246 i++ 0.0234 104.80%
Output for 5.5.33
++i 0.0405 i++ 0.0503 80.52%
Output for 5.5.32
++i 0.0240 i++ 0.0244 98.17%
Output for 5.5.31
++i 0.0222 i++ 0.0270 82.13%
Output for 5.5.30
++i 0.0263 i++ 0.0297 88.64%
Output for 5.5.29
++i 0.0261 i++ 0.0287 90.92%
Output for 5.5.28
++i 0.0173 i++ 0.0213 81.22%
Output for 5.5.27
++i 0.0185 i++ 0.0230 80.51%
Output for 5.5.26
++i 0.0247 i++ 0.0251 98.53%
Output for 5.5.25
++i 0.0238 i++ 0.0280 85.22%
Output for 5.5.24
++i 0.0271 i++ 0.0268 101.15%
Output for 5.5.23
++i 0.0235 i++ 0.0268 87.73%
Output for 5.5.22
++i 0.0231 i++ 0.0267 86.71%
Output for 5.5.21
++i 0.0232 i++ 0.0230 100.68%
Output for 5.5.20
++i 0.0271 i++ 0.0308 88.05%
Output for 5.5.19
++i 0.0271 i++ 0.0303 89.51%
Output for 5.5.18
++i 0.0272 i++ 0.0271 100.44%
Output for 5.5.16
++i 0.0253 i++ 0.0249 101.30%
Output for 5.5.15
++i 0.0219 i++ 0.0226 96.97%
Output for 5.5.14
++i 0.0210 i++ 0.0227 92.55%
Output for 5.5.13
++i 0.0209 i++ 0.0240 87.13%
Output for 5.5.12
++i 0.0278 i++ 0.0312 89.13%
Output for 5.5.11
++i 0.0240 i++ 0.0274 87.57%
Output for 5.5.10
++i 0.0267 i++ 0.0270 98.86%
Output for 5.5.9
++i 0.0257 i++ 0.0283 90.96%
Output for 5.5.8
++i 0.0282 i++ 0.0313 90.12%
Output for 5.5.7
++i 0.0208 i++ 0.0246 84.66%
Output for 5.5.6
++i 0.0257 i++ 0.0263 97.69%
Output for 5.5.5
++i 0.0187 i++ 0.0271 68.95%
Output for 5.5.4
++i 0.0283 i++ 0.0303 93.40%
Output for 5.5.3
++i 0.0263 i++ 0.0294 89.35%
Output for 5.5.2
++i 0.0233 i++ 0.0265 88.19%
Output for 5.5.1
++i 0.0218 i++ 0.0257 84.84%
Output for 5.5.0
++i 0.0262 i++ 0.0274 95.57%
Output for 5.4.45
++i 0.0244 i++ 0.0288 84.68%
Output for 5.4.44
++i 0.0233 i++ 0.0272 85.64%
Output for 5.4.43
++i 0.0262 i++ 0.0266 98.68%
Output for 5.4.42
++i 0.0244 i++ 0.0280 86.99%
Output for 5.4.41
++i 0.0276 i++ 0.0309 89.15%
Output for 5.4.40
++i 0.0275 i++ 0.0308 89.44%
Output for 5.4.39
++i 0.0232 i++ 0.0270 85.92%
Output for 5.4.38
++i 0.0287 i++ 0.0333 86.33%
Output for 5.4.37
++i 0.0265 i++ 0.0241 109.96%
Output for 5.4.36
++i 0.0359 i++ 0.0371 96.81%
Output for 5.4.35
++i 0.0178 i++ 0.0204 87.52%
Output for 5.4.34
++i 0.0250 i++ 0.0242 103.47%
Output for 5.4.32
++i 0.0262 i++ 0.0287 91.49%
Output for 5.4.31
++i 0.0254 i++ 0.0274 92.84%
Output for 5.4.30
++i 0.0229 i++ 0.0263 87.10%
Output for 5.4.29
++i 0.0264 i++ 0.0302 87.24%
Output for 5.4.28
++i 0.0248 i++ 0.0269 92.21%
Output for 5.4.27
++i 0.0264 i++ 0.0300 87.89%
Output for 5.4.26
++i 0.0269 i++ 0.0268 100.47%
Output for 5.4.25
++i 0.0256 i++ 0.0253 101.26%
Output for 5.4.24
++i 0.0243 i++ 0.0267 91.15%
Output for 5.4.23
++i 0.0268 i++ 0.0301 88.92%
Output for 5.4.22
++i 0.0320 i++ 0.0347 92.27%
Output for 5.4.21
++i 0.0258 i++ 0.0297 86.79%
Output for 5.4.20
++i 0.0245 i++ 0.0294 83.37%
Output for 5.4.19
++i 0.0265 i++ 0.0298 89.01%
Output for 5.4.18
++i 0.0325 i++ 0.0325 99.87%
Output for 5.4.17
++i 0.0269 i++ 0.0294 91.46%
Output for 5.4.16
++i 0.0199 i++ 0.0236 84.45%
Output for 5.4.15
++i 0.0266 i++ 0.0334 79.56%
Output for 5.4.14
++i 0.0277 i++ 0.0280 98.88%
Output for 5.4.13
++i 0.0282 i++ 0.0309 91.24%
Output for 5.4.12
++i 0.0239 i++ 0.0271 88.19%
Output for 5.4.11
++i 0.0271 i++ 0.0264 102.64%
Output for 5.4.10
++i 0.0268 i++ 0.0274 97.78%
Output for 5.4.9
++i 0.0227 i++ 0.0242 93.90%
Output for 5.4.8
++i 0.0255 i++ 0.0266 96.18%
Output for 5.4.7
++i 0.0291 i++ 0.0278 104.61%
Output for 5.4.6
++i 0.0225 i++ 0.0255 87.97%
Output for 5.4.5
++i 0.0202 i++ 0.0241 83.81%
Output for 5.4.4
++i 0.0240 i++ 0.0233 103.05%
Output for 5.4.3
++i 0.0247 i++ 0.0308 80.45%
Output for 5.4.2
++i 0.0203 i++ 0.0252 80.65%
Output for 5.4.1
++i 0.0281 i++ 0.0306 92.10%
Output for 5.4.0
++i 0.0234 i++ 0.0240 97.77%
Output for 5.3.29
++i 0.0324 i++ 0.0319 101.76%
Output for 5.3.28
++i 0.0331 i++ 0.0311 106.23%
Output for 5.3.27
++i 0.0306 i++ 0.0324 94.50%
Output for 5.3.26
++i 0.0282 i++ 0.0311 90.65%
Output for 5.3.25
++i 0.0353 i++ 0.0342 103.01%
Output for 5.3.24
++i 0.0352 i++ 0.0361 97.47%
Output for 5.3.23
++i 0.0316 i++ 0.0336 94.03%
Output for 5.3.22
++i 0.0341 i++ 0.0308 110.48%
Output for 5.3.21
++i 0.0320 i++ 0.0325 98.30%
Output for 5.3.20
++i 0.0348 i++ 0.0376 92.55%
Output for 5.3.19
++i 0.0362 i++ 0.0381 95.15%
Output for 5.3.18
++i 0.0253 i++ 0.0335 75.46%
Output for 5.3.17
++i 0.0378 i++ 0.0290 130.25%
Output for 5.3.16
++i 0.0312 i++ 0.0291 107.15%
Output for 5.3.15
++i 0.0339 i++ 0.0305 111.11%
Output for 5.3.14
++i 0.0353 i++ 0.0340 103.71%
Output for 5.3.13
++i 0.0289 i++ 0.0301 96.14%
Output for 5.3.12
++i 0.0337 i++ 0.0360 93.50%
Output for 5.3.11
++i 0.0332 i++ 0.0300 110.93%
Output for 5.3.10
++i 0.0299 i++ 0.0334 89.56%
Output for 5.3.9
++i 0.0354 i++ 0.0366 96.83%
Output for 5.3.8
++i 0.0324 i++ 0.0344 94.15%
Output for 5.3.7
++i 0.0354 i++ 0.0359 98.56%
Output for 5.3.6
++i 0.0355 i++ 0.0365 97.34%
Output for 5.3.5
++i 0.0373 i++ 0.0319 117.21%
Output for 5.3.4
++i 0.0387 i++ 0.0356 108.58%
Output for 5.3.3
++i 0.0374 i++ 0.0380 98.36%
Output for 5.3.2
++i 0.0316 i++ 0.0299 105.72%
Output for 5.3.1
++i 0.0403 i++ 0.0393 102.47%
Output for 5.3.0
++i 0.0276 i++ 0.0281 98.46%
Output for 5.2.17
++i 0.0471 i++ 0.0415 113.58%
Output for 5.2.16
++i 0.0431 i++ 0.0395 109.21%
Output for 5.2.15
++i 0.0445 i++ 0.0444 100.10%
Output for 5.2.14
++i 0.0528 i++ 0.0505 104.59%
Output for 5.2.13
++i 0.0490 i++ 0.0439 111.70%
Output for 5.2.12
++i 0.0475 i++ 0.0462 102.71%
Output for 5.2.11
++i 0.0554 i++ 0.0473 117.09%
Output for 5.2.10
++i 0.0350 i++ 0.0362 96.71%
Output for 5.2.9
++i 0.0514 i++ 0.0497 103.23%
Output for 5.2.8
++i 0.0447 i++ 0.0388 115.20%
Output for 5.2.7
++i 0.0505 i++ 0.0488 103.33%
Output for 5.2.6
++i 0.0437 i++ 0.0449 97.37%
Output for 5.2.5
++i 0.0525 i++ 0.0501 104.76%
Output for 5.2.4
++i 0.0445 i++ 0.0448 99.23%
Output for 5.2.3
++i 0.0524 i++ 0.0512 102.36%
Output for 5.2.2
++i 0.0524 i++ 0.0503 104.10%
Output for 5.2.1
++i 0.0412 i++ 0.0416 98.97%
Output for 5.2.0
++i 0.0433 i++ 0.0405 106.83%
Output for 5.1.6
++i 0.0470 i++ 0.0489 96.17%
Output for 5.1.5
++i 0.0544 i++ 0.0528 103.07%
Output for 5.1.4
++i 0.0450 i++ 0.0401 112.26%
Output for 5.1.3
++i 0.0558 i++ 0.0486 114.75%
Output for 5.1.2
++i 0.0467 i++ 0.0412 113.36%
Output for 5.1.1
++i 0.0484 i++ 0.0412 117.39%
Output for 5.1.0
++i 0.0468 i++ 0.0440 106.35%
Output for 5.0.5
++i 0.1179 i++ 0.0931 126.57%
Output for 5.0.4
++i 0.1124 i++ 0.0996 112.86%
Output for 5.0.3
++i 0.0887 i++ 0.0777 114.14%
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.2
++i i++ %
Output for 4.4.9
++i 0.1036 i++ 0.0818 126.69%
Output for 4.4.8
++i 0.1156 i++ 0.0878 131.68%
Output for 4.4.7
++i 0.1113 i++ 0.0855 130.18%
Output for 4.4.6
++i 0.1139 i++ 0.0873 130.43%
Output for 4.4.5
++i 0.0930 i++ 0.0753 123.39%
Output for 4.4.4
++i 0.0862 i++ 0.0784 109.93%
Output for 4.4.3
++i 0.0986 i++ 0.0758 130.15%
Output for 4.4.2
++i 0.1065 i++ 0.0794 134.23%
Output for 4.4.1
++i 0.1028 i++ 0.0787 130.62%
Output for 4.4.0
++i 0.1102 i++ 0.0779 141.45%
Output for 4.3.11
++i 0.1127 i++ 0.0856 131.71%
Output for 4.3.10
++i 0.1107 i++ 0.0864 128.17%