3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xy = microtime(true); $n = 10000; while (--$n) { $a = 'hello, world!'; } // multiplication and formatting do not count as they go after the subtraction echo ("\nExecution took: " . number_format((microtime(true) - $xy) * 1000000, 0, '.', '') . " microsecond(s).\n");
Output for 7.1.0
Execution took: 179 microsecond(s).
Output for 7.0.14
Execution took: 177 microsecond(s).
Output for 7.0.10
Execution took: 108 microsecond(s).
Output for 7.0.0, 7.0.7, 7.0.9
Execution took: 101 microsecond(s).
Output for 7.0.8
Execution took: 104 microsecond(s).
Output for 7.0.6
Execution took: 114 microsecond(s).
Output for 7.0.5
Execution took: 154 microsecond(s).
Output for 7.0.4
Execution took: 98 microsecond(s).
Output for 7.0.3
Execution took: 131 microsecond(s).
Output for 7.0.2
Execution took: 132 microsecond(s).
Output for 7.0.1
Execution took: 147 microsecond(s).
Output for 5.6.19, hhvm-3.12.0
Execution took: 412 microsecond(s).
Output for hhvm-3.10.0
Execution took: 802 microsecond(s).
Output for 5.3.8, 5.6.28
Execution took: 411 microsecond(s).
Output for 5.6.25
Execution took: 224 microsecond(s).
Output for 5.6.24
Execution took: 250 microsecond(s).
Output for 5.6.23
Execution took: 355 microsecond(s).
Output for 5.6.22
Execution took: 287 microsecond(s).
Output for 5.6.21
Execution took: 246 microsecond(s).
Output for 5.4.41, 5.4.45, 5.6.20
Execution took: 414 microsecond(s).
Output for 5.3.9, 5.5.31, 5.6.18
Execution took: 407 microsecond(s).
Output for 5.4.29, 5.4.34, 5.4.36, 5.6.17
Execution took: 363 microsecond(s).
Output for 5.6.2, 5.6.16
Execution took: 372 microsecond(s).
Output for 5.6.15
Execution took: 370 microsecond(s).
Output for 5.4.32, 5.6.14
Execution took: 416 microsecond(s).
Output for 5.6.13
Execution took: 564 microsecond(s).
Output for 5.6.12
Execution took: 313 microsecond(s).
Output for 5.6.4, 5.6.11
Execution took: 406 microsecond(s).
Output for 5.6.10
Execution took: 578 microsecond(s).
Output for 5.4.40, 5.6.9
Execution took: 338 microsecond(s).
Output for 5.6.8
Execution took: 388 microsecond(s).
Output for 5.6.7
Execution took: 290 microsecond(s).
Output for 5.5.32, 5.6.1, 5.6.6
Execution took: 339 microsecond(s).
Output for 5.6.0, 5.6.5
Execution took: 340 microsecond(s).
Output for 5.6.3
Execution took: 314 microsecond(s).
Output for 5.5.38
Execution took: 262 microsecond(s).
Output for 5.5.37
Execution took: 235 microsecond(s).
Output for 5.5.36
Execution took: 258 microsecond(s).
Output for 5.5.35
Execution took: 259 microsecond(s).
Output for 5.5.34
Execution took: 263 microsecond(s).
Output for 5.5.33
Execution took: 221 microsecond(s).
Output for 5.5.30
Execution took: 371 microsecond(s).
Output for 5.5.4, 5.5.29
Execution took: 341 microsecond(s).
Output for 5.5.15, 5.5.19, 5.5.25, 5.5.28
Execution took: 427 microsecond(s).
Output for 5.4.31, 5.5.9, 5.5.16, 5.5.27
Execution took: 404 microsecond(s).
Output for 5.5.26
Execution took: 451 microsecond(s).
Output for 5.5.24
Execution took: 354 microsecond(s).
Output for 5.5.23
Execution took: 396 microsecond(s).
Output for 5.5.22
Execution took: 369 microsecond(s).
Output for 5.5.21
Execution took: 437 microsecond(s).
Output for 5.5.20
Execution took: 257 microsecond(s).
Output for 5.5.13, 5.5.18
Execution took: 424 microsecond(s).
Output for 5.5.11, 5.5.14
Execution took: 426 microsecond(s).
Output for 5.5.12
Execution took: 463 microsecond(s).
Output for 5.5.10
Execution took: 428 microsecond(s).
Output for 5.4.14, 5.5.8
Execution took: 418 microsecond(s).
Output for 5.5.7
Execution took: 421 microsecond(s).
Output for 5.5.6
Execution took: 515 microsecond(s).
Output for 5.5.5
Execution took: 264 microsecond(s).
Output for 5.5.3
Execution took: 317 microsecond(s).
Output for 5.5.2
Execution took: 302 microsecond(s).
Output for 5.5.1
Execution took: 390 microsecond(s).
Output for 5.5.0
Execution took: 402 microsecond(s).
Output for 5.4.44
Execution took: 347 microsecond(s).
Output for 5.4.18, 5.4.43
Execution took: 377 microsecond(s).
Output for 5.4.23, 5.4.42
Execution took: 438 microsecond(s).
Output for 5.4.39
Execution took: 445 microsecond(s).
Output for 5.4.38
Execution took: 294 microsecond(s).
Output for 5.4.37
Execution took: 425 microsecond(s).
Output for 5.4.35
Execution took: 409 microsecond(s).
Output for 5.4.30
Execution took: 397 microsecond(s).
Output for 5.4.10, 5.4.21, 5.4.28
Execution took: 398 microsecond(s).
Output for 5.4.27
Execution took: 391 microsecond(s).
Output for 5.4.26
Execution took: 379 microsecond(s).
Output for 5.4.25
Execution took: 384 microsecond(s).
Output for 5.4.24
Execution took: 520 microsecond(s).
Output for 5.4.22
Execution took: 436 microsecond(s).
Output for 5.4.20
Execution took: 350 microsecond(s).
Output for 5.4.19
Execution took: 686 microsecond(s).
Output for 5.4.17
Execution took: 342 microsecond(s).
Output for 5.4.16
Execution took: 289 microsecond(s).
Output for 5.4.15
Execution took: 395 microsecond(s).
Output for 5.4.13
Execution took: 392 microsecond(s).
Output for 5.4.12
Execution took: 413 microsecond(s).
Output for 5.4.11
Execution took: 484 microsecond(s).
Output for 5.4.9
Execution took: 293 microsecond(s).
Output for 5.4.8
Execution took: 399 microsecond(s).
Output for 5.4.7
Execution took: 401 microsecond(s).
Output for 5.4.4, 5.4.6
Execution took: 410 microsecond(s).
Output for 5.4.5
Execution took: 450 microsecond(s).
Output for 5.4.3
Execution took: 400 microsecond(s).
Output for 5.4.2
Execution took: 442 microsecond(s).
Output for 5.4.1
Execution took: 375 microsecond(s).
Output for 5.4.0
Execution took: 389 microsecond(s).
Output for 5.3.26, 5.3.29
Execution took: 694 microsecond(s).
Output for 5.3.28
Execution took: 646 microsecond(s).
Output for 5.3.27
Execution took: 713 microsecond(s).
Output for 5.3.25
Execution took: 566 microsecond(s).
Output for 5.3.24
Execution took: 563 microsecond(s).
Output for 5.3.23
Execution took: 655 microsecond(s).
Output for 5.3.22
Execution took: 452 microsecond(s).
Output for 5.3.21
Execution took: 729 microsecond(s).
Output for 5.3.20
Execution took: 706 microsecond(s).
Output for 5.3.19
Execution took: 510 microsecond(s).
Output for 5.3.18
Execution took: 695 microsecond(s).
Output for 5.3.17
Execution took: 703 microsecond(s).
Output for 5.3.16
Execution took: 704 microsecond(s).
Output for 5.3.15
Execution took: 485 microsecond(s).
Output for 5.3.14
Execution took: 699 microsecond(s).
Output for 5.3.13
Execution took: 650 microsecond(s).
Output for 5.3.12
Execution took: 573 microsecond(s).
Output for 5.3.11
Execution took: 669 microsecond(s).
Output for 5.3.10
Execution took: 1108 microsecond(s).
Output for 5.3.7
Execution took: 618 microsecond(s).
Output for 5.3.6
Execution took: 749 microsecond(s).
Output for 5.3.5
Execution took: 725 microsecond(s).
Output for 5.3.4
Execution took: 1051 microsecond(s).
Output for 5.3.3
Execution took: 675 microsecond(s).
Output for 5.3.2
Execution took: 719 microsecond(s).
Output for 5.3.1
Execution took: 751 microsecond(s).
Output for 5.3.0
Execution took: 678 microsecond(s).
Output for 5.2.17
Execution took: 851 microsecond(s).
Output for 5.2.13, 5.2.16
Execution took: 899 microsecond(s).
Output for 5.1.0, 5.2.15
Execution took: 881 microsecond(s).
Output for 5.2.14
Execution took: 687 microsecond(s).
Output for 5.2.12
Execution took: 784 microsecond(s).
Output for 5.2.11
Execution took: 876 microsecond(s).
Output for 5.2.10
Execution took: 917 microsecond(s).
Output for 5.2.9
Execution took: 905 microsecond(s).
Output for 5.2.8
Execution took: 953 microsecond(s).
Output for 5.2.7
Execution took: 797 microsecond(s).
Output for 5.2.6
Execution took: 740 microsecond(s).
Output for 5.2.5
Execution took: 615 microsecond(s).
Output for 5.2.4
Execution took: 677 microsecond(s).
Output for 5.2.3
Execution took: 826 microsecond(s).
Output for 5.2.2
Execution took: 796 microsecond(s).
Output for 5.2.1
Execution took: 862 microsecond(s).
Output for 5.2.0
Execution took: 880 microsecond(s).
Output for 5.1.6
Execution took: 548 microsecond(s).
Output for 5.1.5
Execution took: 698 microsecond(s).
Output for 5.1.4
Execution took: 954 microsecond(s).
Output for 5.1.3
Execution took: 823 microsecond(s).
Output for 5.1.2
Execution took: 809 microsecond(s).
Output for 5.1.1
Execution took: 892 microsecond(s).
Output for 5.0.5
Execution took: 1076 microsecond(s).
Output for 5.0.4
Execution took: 1410 microsecond(s).
Output for 5.0.3
Execution took: 1309 microsecond(s).
Output for 5.0.2
Execution took: 1559 microsecond(s).
Output for 5.0.1
Execution took: 1408 microsecond(s).
Output for 5.0.0
Execution took: 1310 microsecond(s).
Output for 4.4.9
Execution took: 1684 microsecond(s).
Output for 4.4.8
Execution took: 1716 microsecond(s).
Output for 4.4.7
Execution took: 1347 microsecond(s).
Output for 4.4.6
Execution took: 1701 microsecond(s).
Output for 4.4.5
Execution took: 1574 microsecond(s).
Output for 4.4.4
Execution took: 1276 microsecond(s).
Output for 4.4.3
Execution took: 3289 microsecond(s).
Output for 4.4.2
Execution took: 1567 microsecond(s).
Output for 4.4.1
Execution took: 1694 microsecond(s).
Output for 4.4.0
Execution took: 1432 microsecond(s).
Output for 4.3.11
Execution took: 1798 microsecond(s).
Output for 4.3.10
Execution took: 2644 microsecond(s).
Output for 4.3.9
Execution took: 1586 microsecond(s).
Output for 4.3.8
Execution took: 1170 microsecond(s).
Output for 4.3.7
Execution took: 1521 microsecond(s).
Output for 4.3.6
Execution took: 1724 microsecond(s).
Output for 4.3.5
Execution took: 1660 microsecond(s).
Output for 4.3.4
Execution took: 1554 microsecond(s).
Output for 4.3.3
Execution took: 1772 microsecond(s).
Output for 4.3.2
Execution took: 1304 microsecond(s).
Output for 4.3.1
Execution took: 1785 microsecond(s).
Output for 4.3.0
Execution took: 1541 microsecond(s).