3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { hi1("hi", $i, [], new stdClass(), 0.0, true); } $t2 = hrtime(true); $t3 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { hi2("hi", $i, [], new stdClass(), 0.0, true); } $t4 = hrtime(true); echo "Without types: " . (($t2 - $t1) / 1000000) . " ms\n"; echo "With types : " . (($t4 - $t3) / 1000000) . " ms\n"; /** * @param string $a * @param int $b * @param array $c * @param stdClass $d * @param float $e * @param bool $f * @return void */ function hi1($a, $b, $c, $d, $e, $f) { } function hi2(string $a, int $b, array $c, stdClass $d, float $e, bool $f): void { }
Output for 8.3.13
Without types: 214.157866 ms With types : 251.758548 ms
Output for 8.3.12
Without types: 220.442963 ms With types : 250.51426 ms
Output for 8.3.11
Without types: 243.138746 ms With types : 285.136827 ms
Output for 8.3.10
Without types: 212.153731 ms With types : 252.438087 ms
Output for 8.3.9
Without types: 215.912715 ms With types : 250.212496 ms
Output for 8.3.8
Without types: 260.314384 ms With types : 304.753185 ms
Output for 8.3.7
Without types: 406.305734 ms With types : 464.378124 ms
Output for 8.3.6
Without types: 391.389002 ms With types : 459.925141 ms
Output for 8.3.5
Without types: 285.932561 ms With types : 300.107663 ms
Output for 8.3.4
Without types: 411.568999 ms With types : 470.603072 ms
Output for 8.3.3
Without types: 391.391975 ms With types : 465.977253 ms
Output for 8.3.2
Without types: 225.201684 ms With types : 250.879097 ms
Output for 8.3.1
Without types: 226.479545 ms With types : 259.191995 ms
Output for 8.3.0
Without types: 233.123728 ms With types : 249.269336 ms
Output for 8.2.25
Without types: 237.883363 ms With types : 250.342738 ms
Output for 8.2.24
Without types: 210.122875 ms With types : 247.513945 ms
Output for 8.2.23
Without types: 215.85526 ms With types : 256.014139 ms
Output for 8.2.22
Without types: 208.69223 ms With types : 248.212249 ms
Output for 8.2.21
Without types: 219.205507 ms With types : 247.287505 ms
Output for 8.2.20
Without types: 255.351717 ms With types : 299.374331 ms
Output for 8.2.19
Without types: 413.736682 ms With types : 479.023577 ms
Output for 8.2.18
Without types: 437.390435 ms With types : 482.257539 ms
Output for 8.2.17
Without types: 406.332966 ms With types : 480.109801 ms
Output for 8.2.16
Without types: 391.355464 ms With types : 469.160835 ms
Output for 8.2.15
Without types: 211.807694 ms With types : 248.788735 ms
Output for 8.2.14
Without types: 223.024136 ms With types : 250.276337 ms
Output for 8.2.13
Without types: 216.367294 ms With types : 248.953657 ms
Output for 8.2.12
Without types: 241.807114 ms With types : 251.40452 ms
Output for 8.2.11
Without types: 438.178401 ms With types : 469.957328 ms
Output for 8.2.10
Without types: 348.987985 ms With types : 443.411643 ms
Output for 8.2.9
Without types: 311.938534 ms With types : 400.623561 ms
Output for 8.2.8
Without types: 348.446713 ms With types : 432.046814 ms
Output for 8.2.7
Without types: 336.574198 ms With types : 429.69967 ms
Output for 8.2.6
Without types: 355.099792 ms With types : 460.770962 ms
Output for 8.2.5
Without types: 347.362306 ms With types : 437.32937 ms
Output for 8.2.4
Without types: 386.55841 ms With types : 473.854608 ms
Output for 8.2.3
Without types: 368.487736 ms With types : 468.156577 ms
Output for 8.2.2
Without types: 387.647493 ms With types : 495.849162 ms
Output for 8.2.1
Without types: 358.115677 ms With types : 458.009216 ms
Output for 8.2.0
Without types: 346.54004 ms With types : 448.990267 ms
Output for 8.1.30
Without types: 241.299996 ms With types : 251.756456 ms
Output for 8.1.29
Without types: 258.140499 ms With types : 308.375184 ms
Output for 8.1.28
Without types: 481.172757 ms With types : 587.084296 ms
Output for 8.1.27
Without types: 210.564451 ms With types : 248.856866 ms
Output for 8.1.26
Without types: 210.59648 ms With types : 248.664129 ms
Output for 8.1.25
Without types: 275.028815 ms With types : 298.814802 ms
Output for 8.1.24
Without types: 431.004971 ms With types : 471.305028 ms
Output for 8.1.23
Without types: 309.505974 ms With types : 369.331459 ms
Output for 8.1.22
Without types: 353.979421 ms With types : 425.132164 ms
Output for 8.1.21
Without types: 308.900538 ms With types : 395.901071 ms
Output for 8.1.20
Without types: 362.906488 ms With types : 483.260771 ms
Output for 8.1.19
Without types: 347.201383 ms With types : 453.552848 ms
Output for 8.1.18
Without types: 351.855488 ms With types : 425.519018 ms
Output for 8.1.17
Without types: 358.806439 ms With types : 418.179839 ms
Output for 8.1.16
Without types: 325.27537 ms With types : 417.175455 ms
Output for 8.1.15
Without types: 350.403479 ms With types : 435.745125 ms
Output for 8.1.14
Without types: 349.256986 ms With types : 433.554726 ms
Output for 8.1.13
Without types: 300.436284 ms With types : 360.651974 ms
Output for 8.1.12
Without types: 344.265682 ms With types : 447.694469 ms
Output for 8.1.11
Without types: 377.821269 ms With types : 474.230599 ms
Output for 8.1.10
Without types: 348.461912 ms With types : 431.355772 ms
Output for 8.1.9
Without types: 327.322206 ms With types : 410.868895 ms
Output for 8.1.8
Without types: 341.896134 ms With types : 434.668753 ms
Output for 8.1.7
Without types: 336.154339 ms With types : 433.43764 ms
Output for 8.1.6
Without types: 421.408235 ms With types : 474.724667 ms
Output for 8.1.5
Without types: 420.493723 ms With types : 479.285587 ms
Output for 8.1.4
Without types: 422.063097 ms With types : 479.923697 ms
Output for 8.1.3
Without types: 425.625046 ms With types : 477.35784 ms
Output for 8.1.2
Without types: 421.298892 ms With types : 478.3079 ms
Output for 8.1.1
Without types: 427.736533 ms With types : 478.370027 ms
Output for 8.1.0
Without types: 421.854385 ms With types : 475.629335 ms
Output for 8.0.30
Without types: 312.877534 ms With types : 387.047277 ms
Output for 8.0.29
Without types: 366.598226 ms With types : 469.546505 ms
Output for 8.0.28
Without types: 348.257905 ms With types : 451.601724 ms
Output for 8.0.27
Without types: 359.492495 ms With types : 456.606755 ms
Output for 8.0.26
Without types: 311.113484 ms With types : 407.756494 ms
Output for 8.0.25
Without types: 357.972941 ms With types : 454.478413 ms
Output for 8.0.24
Without types: 385.864988 ms With types : 489.188349 ms
Output for 8.0.23
Without types: 407.319564 ms With types : 491.298411 ms
Output for 8.0.22
Without types: 331.423822 ms With types : 415.600287 ms
Output for 8.0.21
Without types: 341.377621 ms With types : 449.524234 ms
Output for 8.0.20
Without types: 355.336758 ms With types : 453.20326 ms
Output for 8.0.19
Without types: 423.27009 ms With types : 482.879165 ms
Output for 8.0.18
Without types: 424.878109 ms With types : 494.874807 ms
Output for 8.0.17
Without types: 488.246659 ms With types : 523.825971 ms
Output for 8.0.16
Without types: 422.591825 ms With types : 484.061594 ms
Output for 8.0.15
Without types: 482.456895 ms With types : 498.20922 ms
Output for 8.0.14
Without types: 424.024883 ms With types : 483.513309 ms
Output for 8.0.13
Without types: 424.390108 ms With types : 484.970159 ms
Output for 8.0.12
Without types: 447.009696 ms With types : 521.281933 ms
Output for 8.0.11
Without types: 448.681712 ms With types : 504.26985 ms
Output for 8.0.10
Without types: 425.364267 ms With types : 483.561691 ms
Output for 8.0.9
Without types: 423.222813 ms With types : 482.261171 ms
Output for 8.0.8
Without types: 537.093471 ms With types : 671.707277 ms
Output for 8.0.7
Without types: 421.722205 ms With types : 503.124238 ms
Output for 8.0.6
Without types: 424.617021 ms With types : 510.957157 ms
Output for 8.0.5
Without types: 470.730475 ms With types : 576.489032 ms
Output for 8.0.3
Without types: 756.762127 ms With types : 772.353192 ms
Output for 8.0.2
Without types: 512.47444 ms With types : 681.751931 ms
Output for 8.0.1
Without types: 422.285149 ms With types : 483.967599 ms
Output for 8.0.0
Without types: 549.235627 ms With types : 733.900907 ms
Output for 7.4.33
Without types: 415.370173 ms With types : 528.401114 ms
Output for 7.4.32
Without types: 391.963284 ms With types : 509.430985 ms
Output for 7.4.30
Without types: 409.594642 ms With types : 537.000825 ms
Output for 7.4.29
Without types: 444.834583 ms With types : 554.45359 ms
Output for 7.4.28
Without types: 454.870607 ms With types : 571.98269 ms
Output for 7.4.27
Without types: 442.669694 ms With types : 542.983169 ms
Output for 7.4.26
Without types: 449.470503 ms With types : 536.131086 ms
Output for 7.4.25
Without types: 443.0362 ms With types : 547.660778 ms
Output for 7.4.24
Without types: 443.9695 ms With types : 568.996641 ms
Output for 7.4.23
Without types: 443.656669 ms With types : 552.543951 ms
Output for 7.4.22
Without types: 442.955007 ms With types : 544.941692 ms
Output for 7.4.21
Without types: 639.69338 ms With types : 1145.335461 ms
Output for 7.4.20
Without types: 448.064808 ms With types : 548.658875 ms
Output for 7.4.13
Without types: 709.521184 ms With types : 827.269705 ms
Output for 7.4.12
Without types: 667.133222 ms With types : 823.264776 ms
Output for 7.4.11
Without types: 612.930574 ms With types : 779.551163 ms
Output for 7.4.10
Without types: 686.547193 ms With types : 843.969979 ms
Output for 7.4.9
Without types: 646.356447 ms With types : 751.17177 ms
Output for 7.4.8
Without types: 888.520037 ms With types : 1198.621205 ms
Output for 7.4.7
Without types: 527.834834 ms With types : 715.508353 ms
Output for 7.4.6
Without types: 552.510616 ms With types : 751.784583 ms
Output for 7.4.5
Without types: 638.20259 ms With types : 889.389018 ms
Output for 7.4.4
Without types: 606.509429 ms With types : 917.79172 ms
Output for 7.4.0
Without types: 609.406499 ms With types : 890.810713 ms
Output for 7.3.33
Without types: 461.676406 ms With types : 620.716475 ms
Output for 7.3.32
Without types: 462.01424 ms With types : 609.79704 ms
Output for 7.3.31
Without types: 471.255183 ms With types : 616.670076 ms
Output for 7.3.30
Without types: 460.160616 ms With types : 616.380667 ms
Output for 7.3.29
Without types: 467.736456 ms With types : 657.564712 ms
Output for 7.3.28
Without types: 819.124206 ms With types : 1118.509289 ms
Output for 7.3.26
Without types: 724.294717 ms With types : 947.621147 ms
Output for 7.3.24
Without types: 775.521335 ms With types : 854.380193 ms
Output for 7.3.23
Without types: 813.470746 ms With types : 976.339485 ms
Output for 7.3.21
Without types: 649.273462 ms With types : 1124.955826 ms
Output for 7.3.20
Without types: 676.410831 ms With types : 846.180689 ms
Output for 7.3.19
Without types: 912.55854 ms With types : 1443.746692 ms
Output for 7.3.18
Without types: 750.868435 ms With types : 1178.152027 ms
Output for 7.3.17
Without types: 621.073792 ms With types : 843.163954 ms
Output for 7.3.16
Without types: 603.782538 ms With types : 989.176011 ms
Output for 7.3.9
Without types: 734.158683 ms With types : 930.096267 ms
Output for 7.3.8
Without types: 602.423648 ms With types : 990.479835 ms
Output for 7.3.7
Without types: 911.558067 ms With types : 986.160444 ms
Output for 7.3.6
Without types: 620.171635 ms With types : 941.131708 ms
Output for 7.3.5
Without types: 577.216419 ms With types : 865.569115 ms
Output for 7.3.4
Without types: 626.925494 ms With types : 1095.183118 ms
Output for 7.3.3
Without types: 660.450977 ms With types : 983.921436 ms
Output for 7.3.2
Without types: 639.02329 ms With types : 918.445677 ms
Output for 7.3.1
Without types: 574.984186 ms With types : 854.632984 ms
Output for 7.3.0
Without types: 633.393604 ms With types : 1177.625956 ms
Output for 7.1.25 - 7.1.32, 7.2.0 - 7.2.33
Fatal error: Uncaught Error: Call to undefined function hrtime() in /in/2aFg7:3 Stack trace: #0 {main} thrown in /in/2aFg7 on line 3
Process exited with code 255.

preferences:
47.73 ms | 630 KiB | 5 Q