3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $iterations = 1000000; $start = microtime(true); for ($i=0; $i<$iterations; $i++) { $page = @$_GET['page'] ?: 'home'; } $suppressedTime = round(microtime(true) - $start, 8); $start = microtime(true); for ($i=0; $i<$iterations; $i++) { $page = isset($_GET['page']) ? $_GET['page'] : 'home'; } $issetTime = round(microtime(true) - $start, 8); echo "results for {$iterations} iterations:\n\n"; echo "suppressed time: {$suppressedTime}\n"; echo "isset time: {$issetTime}\n"; echo "speed difference: " . round($suppressedTime / 100 * $issetTime, 2) . "%";
based on 3dt9g
Output for 7.1.0
results for 1000000 iterations: suppressed time: -0.19880986 isset time: -0.02558494 speed difference: 0%
Output for 7.0.14
results for 1000000 iterations: suppressed time: 0.33387899 isset time: 0.03959703 speed difference: 0%
Output for 7.0.12
results for 1000000 iterations: suppressed time: 0.20182014 isset time: 0.02643204 speed difference: 0%
Output for 7.0.11
results for 1000000 iterations: suppressed time: 0.20569205 isset time: 0.02778792 speed difference: 0%
Output for 7.0.10
results for 1000000 iterations: suppressed time: 0.19183683 isset time: 0.026474 speed difference: 0%
Output for 7.0.9
results for 1000000 iterations: suppressed time: 0.19857812 isset time: 0.02653384 speed difference: 0%
Output for 7.0.8
results for 1000000 iterations: suppressed time: 0.18593693 isset time: 0.02644205 speed difference: 0%
Output for 7.0.7
results for 1000000 iterations: suppressed time: 0.12382102 isset time: 0.0266211 speed difference: 0%
Output for 7.0.6
results for 1000000 iterations: suppressed time: 0.20747399 isset time: 0.02650309 speed difference: 0%
Output for 7.0.5
results for 1000000 iterations: suppressed time: 0.19886398 isset time: 0.02682686 speed difference: 0%
Output for 7.0.4
results for 1000000 iterations: suppressed time: 0.18373394 isset time: 0.02678394 speed difference: 0%
Output for 7.0.3
results for 1000000 iterations: suppressed time: 0.22062206 isset time: 0.02673602 speed difference: 0%
Output for 7.0.2
results for 1000000 iterations: suppressed time: 0.18215108 isset time: 0.02673888 speed difference: 0%
Output for 7.0.1
results for 1000000 iterations: suppressed time: 0.20355701 isset time: 0.02674818 speed difference: 0%
Output for 7.0.0
results for 1000000 iterations: suppressed time: -0.09698796 isset time: 0.02744985 speed difference: -0%
Output for 5.6.28
results for 1000000 iterations: suppressed time: -0.11675692 isset time: -0.11252499 speed difference: 0%
Output for 5.6.27
results for 1000000 iterations: suppressed time: 0.29278922 isset time: 0.08825207 speed difference: 0%
Output for 5.6.26
results for 1000000 iterations: suppressed time: -0.13472104 isset time: 0.06930089 speed difference: -0%
Output for 5.6.25
results for 1000000 iterations: suppressed time: 0.30178881 isset time: 0.06617498 speed difference: 0%
Output for 5.6.24
results for 1000000 iterations: suppressed time: 0.32048082 isset time: -0.72225285 speed difference: -0%
Output for 5.6.23
results for 1000000 iterations: suppressed time: 0.2948308 isset time: 0.06595492 speed difference: 0%
Output for 5.6.22
results for 1000000 iterations: suppressed time: 0.30341983 isset time: 0.06764507 speed difference: 0%
Output for 5.6.21
results for 1000000 iterations: suppressed time: -0.22547793 isset time: 0.06687689 speed difference: -0%
Output for 5.6.20
results for 1000000 iterations: suppressed time: -0.28735709 isset time: 0.06647396 speed difference: -0%
Output for 5.6.19
results for 1000000 iterations: suppressed time: 0.32328391 isset time: 0.0689199 speed difference: 0%
Output for 5.6.18
results for 1000000 iterations: suppressed time: 0.30339098 isset time: -0.659168 speed difference: -0%
Output for 5.6.17
results for 1000000 iterations: suppressed time: 0.311445 isset time: 0.06875801 speed difference: 0%
Output for 5.6.16
results for 1000000 iterations: suppressed time: 0.27689505 isset time: 0.06377602 speed difference: 0%
Output for 5.6.15
results for 1000000 iterations: suppressed time: -0.23814607 isset time: 0.0662961 speed difference: -0%
Output for 5.6.14
results for 1000000 iterations: suppressed time: 0.31187081 isset time: 0.066154 speed difference: 0%
Output for 5.6.13
results for 1000000 iterations: suppressed time: 0.31995416 isset time: -0.5969739 speed difference: -0%
Output for 5.6.12
results for 1000000 iterations: suppressed time: -0.187747 isset time: 0.07900715 speed difference: -0%
Output for 5.6.11
results for 1000000 iterations: suppressed time: 0.29488087 isset time: 0.06961298 speed difference: 0%
Output for 5.6.10
results for 1000000 iterations: suppressed time: 0.32887506 isset time: 0.08892703 speed difference: 0%
Output for 5.6.9
results for 1000000 iterations: suppressed time: 0.30433011 isset time: 0.0675261 speed difference: 0%
Output for 5.6.8
results for 1000000 iterations: suppressed time: 0.26933503 isset time: -0.54691195 speed difference: -0%
Output for 5.6.7
results for 1000000 iterations: suppressed time: 0.20156288 isset time: 0.06584907 speed difference: 0%
Output for 5.6.6
results for 1000000 iterations: suppressed time: 0.30256891 isset time: 0.05516219 speed difference: 0%
Output for 5.6.5
results for 1000000 iterations: suppressed time: 0.29306507 isset time: 0.05726194 speed difference: 0%
Output for 5.6.4
results for 1000000 iterations: suppressed time: 0.23923492 isset time: 0.054672 speed difference: 0%
Output for 5.6.3
results for 1000000 iterations: suppressed time: 0.28566885 isset time: 0.0672121 speed difference: 0%
Output for 5.6.2
results for 1000000 iterations: suppressed time: 0.25553298 isset time: 0.059165 speed difference: 0%
Output for 5.6.1
results for 1000000 iterations: suppressed time: 0.28463411 isset time: 0.06665492 speed difference: 0%
Output for 5.6.0
results for 1000000 iterations: suppressed time: -0.24651313 isset time: 0.0661149 speed difference: -0%
Output for 5.5.38
results for 1000000 iterations: suppressed time: 0.31232119 isset time: 0.07284212 speed difference: 0%
Output for 5.5.37
results for 1000000 iterations: suppressed time: 0.30041695 isset time: -0.57399511 speed difference: -0%
Output for 5.5.36
results for 1000000 iterations: suppressed time: 0.00335288 isset time: 0.07100701 speed difference: 0%
Output for 5.5.35
results for 1000000 iterations: suppressed time: 0.32024598 isset time: 0.07265282 speed difference: 0%
Output for 5.5.34
results for 1000000 iterations: suppressed time: 0.29997087 isset time: 0.07210493 speed difference: 0%
Output for 5.5.33
results for 1000000 iterations: suppressed time: 0.33506918 isset time: 0.06373596 speed difference: 0%
Output for 5.5.32
results for 1000000 iterations: suppressed time: 0.31234312 isset time: 0.07329202 speed difference: 0%
Output for 5.5.31
results for 1000000 iterations: suppressed time: 0.29352498 isset time: 0.07298899 speed difference: 0%
Output for 5.5.30
results for 1000000 iterations: suppressed time: 0.2961359 isset time: 0.07953811 speed difference: 0%
Output for 5.5.29
results for 1000000 iterations: suppressed time: 0.34123111 isset time: 0.07612014 speed difference: 0%
Output for 5.5.28
results for 1000000 iterations: suppressed time: 0.3333919 isset time: 0.07313108 speed difference: 0%
Output for 5.5.27
results for 1000000 iterations: suppressed time: 0.02271414 isset time: 0.07268381 speed difference: 0%
Output for 5.5.26
results for 1000000 iterations: suppressed time: 0.12984991 isset time: 0.06033301 speed difference: 0%
Output for 5.5.25
results for 1000000 iterations: suppressed time: 0.29775715 isset time: 0.07197905 speed difference: 0%
Output for 5.5.24
results for 1000000 iterations: suppressed time: 0.34468699 isset time: 0.07369518 speed difference: 0%
Output for 5.5.23
results for 1000000 iterations: suppressed time: 0.32320189 isset time: 0.07255197 speed difference: 0%
Output for 5.5.22
results for 1000000 iterations: suppressed time: 0.32167506 isset time: 0.07258892 speed difference: 0%
Output for 5.5.21
results for 1000000 iterations: suppressed time: 0.25949287 isset time: 0.06480789 speed difference: 0%
Output for 5.5.20
results for 1000000 iterations: suppressed time: 0.29368806 isset time: 0.06211185 speed difference: 0%
Output for 5.5.19
results for 1000000 iterations: suppressed time: 0.29641104 isset time: 0.07289791 speed difference: 0%
Output for 5.5.18
results for 1000000 iterations: suppressed time: 0.18930292 isset time: 0.0672121 speed difference: 0%
Output for 5.5.16
results for 1000000 iterations: suppressed time: 0.30987191 isset time: 0.06133604 speed difference: 0%
Output for 5.5.15
results for 1000000 iterations: suppressed time: 0.3060081 isset time: -0.66946006 speed difference: -0%
Output for 5.5.14
results for 1000000 iterations: suppressed time: 0.30683398 isset time: 0.07301593 speed difference: 0%
Output for 5.5.13
results for 1000000 iterations: suppressed time: 0.31247783 isset time: 0.08063483 speed difference: 0%
Output for 5.5.12
results for 1000000 iterations: suppressed time: -0.16698503 isset time: 0.07272577 speed difference: -0%
Output for 5.5.11
results for 1000000 iterations: suppressed time: 0.18057609 isset time: 0.07184696 speed difference: 0%
Output for 5.5.10
results for 1000000 iterations: suppressed time: 0.3217051 isset time: 0.07623291 speed difference: 0%
Output for 5.5.9
results for 1000000 iterations: suppressed time: 0.33273101 isset time: 0.07211185 speed difference: 0%
Output for 5.5.8
results for 1000000 iterations: suppressed time: -0.14349818 isset time: 0.09554601 speed difference: -0%
Output for 5.5.7
results for 1000000 iterations: suppressed time: 0.135005 isset time: 0.0744009 speed difference: 0%
Output for 5.5.6
results for 1000000 iterations: suppressed time: 0.31370711 isset time: 0.07186389 speed difference: 0%
Output for 5.5.5
results for 1000000 iterations: suppressed time: 0.30158091 isset time: 0.07420993 speed difference: 0%
Output for 5.5.4
results for 1000000 iterations: suppressed time: 0.05033398 isset time: 0.073843 speed difference: 0%
Output for 5.5.3
results for 1000000 iterations: suppressed time: 0.35912704 isset time: 0.07217121 speed difference: 0%
Output for 5.5.2
results for 1000000 iterations: suppressed time: 0.3372879 isset time: 0.07307482 speed difference: 0%
Output for 5.5.1
results for 1000000 iterations: suppressed time: 0.31014609 isset time: -0.65044212 speed difference: -0%
Output for 5.5.0
results for 1000000 iterations: suppressed time: 0.36007786 isset time: 0.07209206 speed difference: 0%
Output for 5.4.45
results for 1000000 iterations: suppressed time: 0.30911589 isset time: 0.07234216 speed difference: 0%
Output for 5.4.44
results for 1000000 iterations: suppressed time: 0.3122611 isset time: 0.0755229 speed difference: 0%
Output for 5.4.43
results for 1000000 iterations: suppressed time: 0.07855916 isset time: 0.07685781 speed difference: 0%
Output for 5.4.42
results for 1000000 iterations: suppressed time: 0.29798603 isset time: 0.07272482 speed difference: 0%
Output for 5.4.41
results for 1000000 iterations: suppressed time: 0.24907994 isset time: 0.06206512 speed difference: 0%
Output for 5.4.40
results for 1000000 iterations: suppressed time: -0.03706884 isset time: 0.07166886 speed difference: -0%
Output for 5.4.39
results for 1000000 iterations: suppressed time: 0.35215306 isset time: 0.08592796 speed difference: 0%
Output for 5.4.38
results for 1000000 iterations: suppressed time: 0.26662683 isset time: 0.06579018 speed difference: 0%
Output for 5.4.37
results for 1000000 iterations: suppressed time: 0.26884389 isset time: 0.06077003 speed difference: 0%
Output for 5.4.36
results for 1000000 iterations: suppressed time: 0.25447392 isset time: 0.05986118 speed difference: 0%
Output for 5.4.35
results for 1000000 iterations: suppressed time: 0.26087594 isset time: 0.07351208 speed difference: 0%
Output for 5.4.34
results for 1000000 iterations: suppressed time: 0.29351902 isset time: 0.07291389 speed difference: 0%
Output for 5.4.32
results for 1000000 iterations: suppressed time: -0.03555512 isset time: 0.0727551 speed difference: -0%
Output for 5.4.31
results for 1000000 iterations: suppressed time: 0.29940701 isset time: 0.0788691 speed difference: 0%
Output for 5.4.30
results for 1000000 iterations: suppressed time: 0.27764201 isset time: -0.52007198 speed difference: -0%
Output for 5.4.29
results for 1000000 iterations: suppressed time: -0.27414083 isset time: 0.06728387 speed difference: -0%
Output for 5.4.28
results for 1000000 iterations: suppressed time: 0.30709696 isset time: 0.08064604 speed difference: 0%
Output for 5.4.27
results for 1000000 iterations: suppressed time: 0.34495807 isset time: 0.07521296 speed difference: 0%
Output for 5.4.26
results for 1000000 iterations: suppressed time: 0.32076788 isset time: 0.07249618 speed difference: 0%
Output for 5.4.25
results for 1000000 iterations: suppressed time: 0.31301403 isset time: -0.709759 speed difference: -0%
Output for 5.4.24
results for 1000000 iterations: suppressed time: 0.32891893 isset time: 0.07207489 speed difference: 0%
Output for 5.4.23
results for 1000000 iterations: suppressed time: 0.39699697 isset time: 0.09624887 speed difference: 0%
Output for 5.4.22
results for 1000000 iterations: suppressed time: -0.15990615 isset time: 0.07455206 speed difference: -0%
Output for 5.4.21
results for 1000000 iterations: suppressed time: -0.0256629 isset time: 0.07222223 speed difference: -0%
Output for 5.4.20
results for 1000000 iterations: suppressed time: 0.32768488 isset time: 0.07471204 speed difference: 0%
Output for 5.4.19
results for 1000000 iterations: suppressed time: 0.32058811 isset time: -0.63274002 speed difference: -0%
Output for 5.4.18
results for 1000000 iterations: suppressed time: 0.00369 isset time: 0.07222295 speed difference: 0%
Output for 5.4.17
results for 1000000 iterations: suppressed time: 0.07511592 isset time: 0.07731605 speed difference: 0%
Output for 5.4.16
results for 1000000 iterations: suppressed time: 0.31998491 isset time: 0.09322309 speed difference: 0%
Output for 5.4.15
results for 1000000 iterations: suppressed time: 0.35453701 isset time: 0.07376719 speed difference: 0%
Output for 5.4.14
results for 1000000 iterations: suppressed time: 0.32058597 isset time: 0.07237887 speed difference: 0%
Output for 5.4.13
results for 1000000 iterations: suppressed time: -0.06175089 isset time: 0.072649 speed difference: -0%
Output for 5.4.12
results for 1000000 iterations: suppressed time: 0.29384899 isset time: 0.06012702 speed difference: 0%
Output for 5.4.11
results for 1000000 iterations: suppressed time: -0.04667592 isset time: 0.07483792 speed difference: -0%
Output for 5.4.10
results for 1000000 iterations: suppressed time: 0.33827519 isset time: 0.07264185 speed difference: 0%
Output for 5.4.9
results for 1000000 iterations: suppressed time: 0.32940888 isset time: 0.07276511 speed difference: 0%
Output for 5.4.8
results for 1000000 iterations: suppressed time: 0.33665085 isset time: 0.07249117 speed difference: 0%
Output for 5.4.7
results for 1000000 iterations: suppressed time: 0.28334689 isset time: 0.08091211 speed difference: 0%
Output for 5.4.6
results for 1000000 iterations: suppressed time: 0.29654598 isset time: 0.07262707 speed difference: 0%
Output for 5.4.5
results for 1000000 iterations: suppressed time: -0.25155807 isset time: 0.07387996 speed difference: -0%
Output for 5.4.4
results for 1000000 iterations: suppressed time: 0.32518506 isset time: 0.07197094 speed difference: 0%
Output for 5.4.3
results for 1000000 iterations: suppressed time: 0.29867005 isset time: 0.07299495 speed difference: 0%
Output for 5.4.2
results for 1000000 iterations: suppressed time: 0.26941705 isset time: 0.065871 speed difference: 0%
Output for 5.4.1
results for 1000000 iterations: suppressed time: 0.31007886 isset time: 0.07536983 speed difference: 0%
Output for 5.4.0
results for 1000000 iterations: suppressed time: 0.3266201 isset time: -0.72174478 speed difference: -0%
Output for 5.3.29
results for 1000000 iterations: suppressed time: 0.40411091 isset time: 0.08511281 speed difference: 0%
Output for 5.3.28
results for 1000000 iterations: suppressed time: 0.4316721 isset time: 0.08997393 speed difference: 0%
Output for 5.3.27
results for 1000000 iterations: suppressed time: 0.43699312 isset time: 0.09017301 speed difference: 0%
Output for 5.3.26
results for 1000000 iterations: suppressed time: -0.32362199 isset time: 0.09032607 speed difference: -0%
Output for 5.3.25
results for 1000000 iterations: suppressed time: 0.15228105 isset time: 0.14781094 speed difference: 0%
Output for 5.3.24
results for 1000000 iterations: suppressed time: -0.42994094 isset time: 0.08936 speed difference: -0%
Output for 5.3.23
results for 1000000 iterations: suppressed time: 0.44864297 isset time: 0.08857608 speed difference: 0%
Output for 5.3.22
results for 1000000 iterations: suppressed time: -0.44863796 isset time: 0.08964205 speed difference: -0%
Output for 5.3.21
results for 1000000 iterations: suppressed time: 0.36912704 isset time: 0.08406591 speed difference: 0%
Output for 5.3.20
results for 1000000 iterations: suppressed time: -0.49521518 isset time: 0.09029579 speed difference: -0%
Output for 5.3.19
results for 1000000 iterations: suppressed time: 0.24264693 isset time: 0.08312488 speed difference: 0%
Output for 5.3.18
results for 1000000 iterations: suppressed time: -0.20029283 isset time: 0.09011006 speed difference: -0%
Output for 5.3.17
results for 1000000 iterations: suppressed time: 0.42832112 isset time: 0.08764505 speed difference: 0%
Output for 5.3.16
results for 1000000 iterations: suppressed time: 0.44667697 isset time: 0.09036088 speed difference: 0%
Output for 5.3.15
results for 1000000 iterations: suppressed time: 0.42883086 isset time: 0.09053206 speed difference: 0%
Output for 5.3.14
results for 1000000 iterations: suppressed time: 0.15033388 isset time: 0.08283615 speed difference: 0%
Output for 5.3.13
results for 1000000 iterations: suppressed time: 0.41887784 isset time: -0.75996804 speed difference: -0%
Output for 5.3.12
results for 1000000 iterations: suppressed time: -0.20860505 isset time: 0.08328485 speed difference: -0%
Output for 5.3.11
results for 1000000 iterations: suppressed time: 0.43075204 isset time: 0.08934784 speed difference: 0%
Output for 5.3.10
results for 1000000 iterations: suppressed time: 0.40290689 isset time: 0.07523799 speed difference: 0%
Output for 5.3.9
results for 1000000 iterations: suppressed time: -0.17657089 isset time: 0.08500504 speed difference: -0%
Output for 5.3.8
results for 1000000 iterations: suppressed time: 0.38333797 isset time: 0.0800221 speed difference: 0%
Output for 5.3.7
results for 1000000 iterations: suppressed time: 0.36157918 isset time: 0.08845592 speed difference: 0%
Output for 5.3.6
results for 1000000 iterations: suppressed time: -0.24457693 isset time: 0.08853602 speed difference: -0%
Output for 5.3.5
results for 1000000 iterations: suppressed time: 0.44779015 isset time: -0.87081885 speed difference: -0%
Output for 5.3.4
results for 1000000 iterations: suppressed time: 0.43428612 isset time: 0.08968616 speed difference: 0%
Output for 5.3.3
results for 1000000 iterations: suppressed time: 0.46223402 isset time: 0.09148383 speed difference: 0%
Output for 5.3.2
results for 1000000 iterations: suppressed time: 0.43155408 isset time: 0.10231018 speed difference: 0%
Output for 5.3.1
results for 1000000 iterations: suppressed time: 0.23257899 isset time: 0.09355497 speed difference: 0%
Output for 5.3.0
results for 1000000 iterations: suppressed time: -0.09864497 isset time: 0.07915306 speed difference: -0%
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/2M6bQ on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected ':' in /in/2M6bQ on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/2M6bQ on line 9
Process exited with code 255.