3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $elements = 1000; $iterations = 10000; $array = array(); for ($i = 0; $i < $elements; $i++) $array[] = $i; $s = microtime(true); for ($i = 0; $i < $iterations; $i++) $array === (array) $array; $e = microtime(true); echo "Cast completed in " . ($e - $s) ." Seconds\n"; $s = microtime(true); for ($i = 0; $i < $iterations; $i++) is_array($array); $e = microtime(true); echo "is_array completed in " . ($e - $s) ." Seconds\n";
Output for 7.1.0
Cast completed in 0.00032210350036621 Seconds is_array completed in 0.00020003318786621 Seconds
Output for 7.0.14
Cast completed in 0.0006101131439209 Seconds is_array completed in 0.00045919418334961 Seconds
Output for 7.0.9
Cast completed in 0.00025796890258789 Seconds is_array completed in 0.00014185905456543 Seconds
Output for 7.0.8
Cast completed in 0.0003969669342041 Seconds is_array completed in 0.00024080276489258 Seconds
Output for 7.0.7
Cast completed in 0.00034594535827637 Seconds is_array completed in 0.00020003318786621 Seconds
Output for 7.0.6
Cast completed in 0.00038003921508789 Seconds is_array completed in 0.00023102760314941 Seconds
Output for 7.0.5
Cast completed in 0.00030994415283203 Seconds is_array completed in 0.00018906593322754 Seconds
Output for 7.0.4
Cast completed in 0.00024604797363281 Seconds is_array completed in 0.00020194053649902 Seconds
Output for 7.0.3
Cast completed in 0.00034594535827637 Seconds is_array completed in 0.0001990795135498 Seconds
Output for 7.0.2
Cast completed in 0.00030803680419922 Seconds is_array completed in 0.00018095970153809 Seconds
Output for 7.0.1
Cast completed in 0.00031805038452148 Seconds is_array completed in 0.00019311904907227 Seconds
Output for 7.0.0
Cast completed in 0.00035500526428223 Seconds is_array completed in 0.00021791458129883 Seconds
Output for 5.6.28
Cast completed in 0.33411502838135 Seconds is_array completed in 0.00066685676574707 Seconds
Output for 5.6.23
Cast completed in 0.30875682830811 Seconds is_array completed in 0.00071382522583008 Seconds
Output for 5.6.22
Cast completed in 0.3227059841156 Seconds is_array completed in 0.00074005126953125 Seconds
Output for 5.6.21
Cast completed in 0.34183382987976 Seconds is_array completed in 0.00074100494384766 Seconds
Output for 5.6.20
Cast completed in 0.29758405685425 Seconds is_array completed in 0.00074005126953125 Seconds
Output for 5.6.19
Cast completed in 0.32467794418335 Seconds is_array completed in 0.00081396102905273 Seconds
Output for 5.6.18
Cast completed in 0.32345509529114 Seconds is_array completed in 0.00166916847229 Seconds
Output for 5.6.17
Cast completed in 0.31931710243225 Seconds is_array completed in 0.00076103210449219 Seconds
Output for 5.6.16
Cast completed in 0.29385590553284 Seconds is_array completed in 0.00084900856018066 Seconds
Output for 5.6.15
Cast completed in 0.30693387985229 Seconds is_array completed in 0.00074100494384766 Seconds
Output for 5.6.14
Cast completed in 0.27086997032166 Seconds is_array completed in 0.00060486793518066 Seconds
Output for 5.6.13
Cast completed in 0.33010411262512 Seconds is_array completed in 0.00077295303344727 Seconds
Output for 5.6.12
Cast completed in 0.2748761177063 Seconds is_array completed in 0.00062394142150879 Seconds
Output for 5.6.11
Cast completed in 0.32126188278198 Seconds is_array completed in 0.00072383880615234 Seconds
Output for 5.6.10
Cast completed in 0.3694019317627 Seconds is_array completed in 0.001046895980835 Seconds
Output for 5.6.9
Cast completed in 0.28271698951721 Seconds is_array completed in 0.00071406364440918 Seconds
Output for 5.6.8
Cast completed in 0.30150890350342 Seconds is_array completed in 0.00071811676025391 Seconds
Output for 5.6.7
Cast completed in 0.30654692649841 Seconds is_array completed in 0.00073504447937012 Seconds
Output for 5.6.6
Cast completed in 0.28993988037109 Seconds is_array completed in 0.0005800724029541 Seconds
Output for 5.6.5
Cast completed in 0.27356505393982 Seconds is_array completed in 0.00062108039855957 Seconds
Output for 5.6.4
Cast completed in 0.29212498664856 Seconds is_array completed in 0.00072097778320312 Seconds
Output for 5.6.3
Cast completed in 0.27978205680847 Seconds is_array completed in 0.00071096420288086 Seconds
Output for 5.6.2
Cast completed in 0.23142194747925 Seconds is_array completed in 0.00063586235046387 Seconds
Output for 5.6.1
Cast completed in 0.30740904808044 Seconds is_array completed in 0.00070786476135254 Seconds
Output for 5.6.0
Cast completed in 0.29314017295837 Seconds is_array completed in 0.00071883201599121 Seconds
Output for 5.5.37
Cast completed in 0.40166616439819 Seconds is_array completed in 0.0010368824005127 Seconds
Output for 5.5.36
Cast completed in 0.35091590881348 Seconds is_array completed in 0.0007781982421875 Seconds
Output for 5.5.35
Cast completed in 0.32330012321472 Seconds is_array completed in 0.00077509880065918 Seconds
Output for 5.5.34
Cast completed in 0.36605405807495 Seconds is_array completed in 0.0007472038269043 Seconds
Output for 5.5.33
Cast completed in 0.32567596435547 Seconds is_array completed in 0.00075984001159668 Seconds
Output for 5.5.32
Cast completed in 0.34671092033386 Seconds is_array completed in 0.00073003768920898 Seconds
Output for 5.5.31
Cast completed in 0.31081199645996 Seconds is_array completed in 0.00075697898864746 Seconds
Output for 5.5.30
Cast completed in 0.33235192298889 Seconds is_array completed in 0.00078201293945312 Seconds
Output for 5.5.29
Cast completed in 0.2937650680542 Seconds is_array completed in 0.00076103210449219 Seconds
Output for 5.5.28
Cast completed in 0.29904103279114 Seconds is_array completed in 0.0007469654083252 Seconds
Output for 5.5.27
Cast completed in 0.32687306404114 Seconds is_array completed in 0.00075411796569824 Seconds
Output for 5.5.26
Cast completed in 0.33213090896606 Seconds is_array completed in 0.00075697898864746 Seconds
Output for 5.5.25
Cast completed in 0.28837490081787 Seconds is_array completed in 0.00071215629577637 Seconds
Output for 5.5.24
Cast completed in 0.37327194213867 Seconds is_array completed in 0.00077199935913086 Seconds
Output for 5.5.23
Cast completed in 0.35981512069702 Seconds is_array completed in 0.00083184242248535 Seconds
Output for 5.5.22
Cast completed in 0.28309202194214 Seconds is_array completed in 0.00061917304992676 Seconds
Output for 5.5.21
Cast completed in 0.28266310691833 Seconds is_array completed in 0.00068998336791992 Seconds
Output for 5.5.20
Cast completed in 0.37575221061707 Seconds is_array completed in 0.0012190341949463 Seconds
Output for 5.5.19
Cast completed in 0.29486298561096 Seconds is_array completed in 0.00061488151550293 Seconds
Output for 5.5.18
Cast completed in 0.25208210945129 Seconds is_array completed in 0.00066900253295898 Seconds
Output for 5.5.16
Cast completed in 0.26616597175598 Seconds is_array completed in 0.00060915946960449 Seconds
Output for 5.5.15
Cast completed in 0.32610988616943 Seconds is_array completed in 0.0007631778717041 Seconds
Output for 5.5.14
Cast completed in 0.32354593276978 Seconds is_array completed in 0.00077700614929199 Seconds
Output for 5.5.13
Cast completed in 0.33219814300537 Seconds is_array completed in 0.00082182884216309 Seconds
Output for 5.5.12
Cast completed in 0.31922888755798 Seconds is_array completed in 0.00075101852416992 Seconds
Output for 5.5.11
Cast completed in 0.34704399108887 Seconds is_array completed in 0.00079083442687988 Seconds
Output for 5.5.10
Cast completed in 0.25191903114319 Seconds is_array completed in 0.00064611434936523 Seconds
Output for 5.5.9
Cast completed in 0.31756520271301 Seconds is_array completed in 0.00072693824768066 Seconds
Output for 5.5.8
Cast completed in 0.28089785575867 Seconds is_array completed in 0.00062108039855957 Seconds
Output for 5.5.7
Cast completed in 0.34785318374634 Seconds is_array completed in 0.00072503089904785 Seconds
Output for 5.5.6
Cast completed in 0.30153107643127 Seconds is_array completed in 0.00065088272094727 Seconds
Output for 5.5.5
Cast completed in 0.25656199455261 Seconds is_array completed in 0.0006401538848877 Seconds
Output for 5.5.4
Cast completed in 0.29592084884644 Seconds is_array completed in 0.00074505805969238 Seconds
Output for 5.5.3
Cast completed in 0.30819606781006 Seconds is_array completed in 0.00075411796569824 Seconds
Output for 5.5.2
Cast completed in 0.26137399673462 Seconds is_array completed in 0.00070691108703613 Seconds
Output for 5.5.1
Cast completed in 0.26640295982361 Seconds is_array completed in 0.00066709518432617 Seconds
Output for 5.5.0
Cast completed in 0.32981896400452 Seconds is_array completed in 0.00075697898864746 Seconds
Output for 5.4.45
Cast completed in 0.26620411872864 Seconds is_array completed in 0.00062012672424316 Seconds
Output for 5.4.44
Cast completed in 0.26110696792603 Seconds is_array completed in 0.0006401538848877 Seconds
Output for 5.4.43
Cast completed in 0.29251408576965 Seconds is_array completed in 0.00081896781921387 Seconds
Output for 5.4.42
Cast completed in 0.30927681922913 Seconds is_array completed in 0.00074100494384766 Seconds
Output for 5.4.41
Cast completed in 0.32824993133545 Seconds is_array completed in 0.00074982643127441 Seconds
Output for 5.4.40
Cast completed in 0.33542490005493 Seconds is_array completed in 0.00073909759521484 Seconds
Output for 5.4.39
Cast completed in 0.33158993721008 Seconds is_array completed in 0.00074386596679688 Seconds
Output for 5.4.38
Cast completed in 0.3295590877533 Seconds is_array completed in 0.000762939453125 Seconds
Output for 5.4.37
Cast completed in 0.2637939453125 Seconds is_array completed in 0.00062084197998047 Seconds
Output for 5.4.36
Cast completed in 0.30770015716553 Seconds is_array completed in 0.00073480606079102 Seconds
Output for 5.4.35
Cast completed in 0.25363516807556 Seconds is_array completed in 0.00063204765319824 Seconds
Output for 5.4.34
Cast completed in 0.27941083908081 Seconds is_array completed in 0.00064420700073242 Seconds
Output for 5.4.32
Cast completed in 0.33643889427185 Seconds is_array completed in 0.00075602531433105 Seconds
Output for 5.4.31
Cast completed in 0.3417592048645 Seconds is_array completed in 0.00076103210449219 Seconds
Output for 5.4.30
Cast completed in 0.31086015701294 Seconds is_array completed in 0.00077199935913086 Seconds
Output for 5.4.29
Cast completed in 0.31733107566833 Seconds is_array completed in 0.0007939338684082 Seconds
Output for 5.4.28
Cast completed in 0.3207859992981 Seconds is_array completed in 0.00074481964111328 Seconds
Output for 5.4.27
Cast completed in 0.29516816139221 Seconds is_array completed in 0.00062704086303711 Seconds
Output for 5.4.26
Cast completed in 0.24044704437256 Seconds is_array completed in 0.00060892105102539 Seconds
Output for 5.4.25
Cast completed in 0.29318308830261 Seconds is_array completed in 0.00062894821166992 Seconds
Output for 5.4.24
Cast completed in 0.32626914978027 Seconds is_array completed in 0.00072693824768066 Seconds
Output for 5.4.23
Cast completed in 0.33608317375183 Seconds is_array completed in 0.0007929801940918 Seconds
Output for 5.4.22
Cast completed in 0.32256698608398 Seconds is_array completed in 0.00075483322143555 Seconds
Output for 5.4.21
Cast completed in 0.30288100242615 Seconds is_array completed in 0.00074076652526855 Seconds
Output for 5.4.20
Cast completed in 0.25250697135925 Seconds is_array completed in 0.00070810317993164 Seconds
Output for 5.4.19
Cast completed in 0.31312108039856 Seconds is_array completed in 0.00073719024658203 Seconds
Output for 5.4.18
Cast completed in 0.25907802581787 Seconds is_array completed in 0.00065493583679199 Seconds
Output for 5.4.17
Cast completed in 0.32659697532654 Seconds is_array completed in 0.00074291229248047 Seconds
Output for 5.4.16
Cast completed in 0.32242393493652 Seconds is_array completed in 0.00076699256896973 Seconds
Output for 5.4.15
Cast completed in 0.32825708389282 Seconds is_array completed in 0.0007481575012207 Seconds
Output for 5.4.14
Cast completed in 0.30430102348328 Seconds is_array completed in 0.00068497657775879 Seconds
Output for 5.4.13
Cast completed in 0.34474992752075 Seconds is_array completed in 0.00083780288696289 Seconds
Output for 5.4.12
Cast completed in 0.36151885986328 Seconds is_array completed in 0.00081586837768555 Seconds
Output for 5.4.11
Cast completed in 0.3121509552002 Seconds is_array completed in 0.00075697898864746 Seconds
Output for 5.4.10
Cast completed in 0.31367111206055 Seconds is_array completed in 0.00075101852416992 Seconds
Output for 5.4.9
Cast completed in 0.28613185882568 Seconds is_array completed in 0.00077009201049805 Seconds
Output for 5.4.8
Cast completed in 0.30069017410278 Seconds is_array completed in 0.0010099411010742 Seconds
Output for 5.4.7
Cast completed in 0.37879300117493 Seconds is_array completed in 0.0010459423065186 Seconds
Output for 5.4.6
Cast completed in 0.34980583190918 Seconds is_array completed in 0.00071907043457031 Seconds
Output for 5.4.5
Cast completed in 0.36964392662048 Seconds is_array completed in 0.00097107887268066 Seconds
Output for 5.4.4
Cast completed in 0.33013606071472 Seconds is_array completed in 0.00075006484985352 Seconds
Output for 5.4.3
Cast completed in 0.33526682853699 Seconds is_array completed in 0.00076508522033691 Seconds
Output for 5.4.2
Cast completed in 0.32831406593323 Seconds is_array completed in 0.00082206726074219 Seconds
Output for 5.4.1
Cast completed in 0.30004382133484 Seconds is_array completed in 0.00073409080505371 Seconds
Output for 5.4.0
Cast completed in 0.28918218612671 Seconds is_array completed in 0.00066995620727539 Seconds
Output for 5.3.29
Cast completed in 0.31458115577698 Seconds is_array completed in 0.00092911720275879 Seconds
Output for 5.3.28
Cast completed in 0.31361699104309 Seconds is_array completed in 0.00092697143554688 Seconds
Output for 5.3.27
Cast completed in 0.28693389892578 Seconds is_array completed in 0.00091695785522461 Seconds
Output for 5.3.26
Cast completed in 0.29298400878906 Seconds is_array completed in 0.00089907646179199 Seconds
Output for 5.3.25
Cast completed in 0.31680393218994 Seconds is_array completed in 0.00092101097106934 Seconds
Output for 5.3.24
Cast completed in 0.30189490318298 Seconds is_array completed in 0.00092697143554688 Seconds
Output for 5.3.23
Cast completed in 0.33460402488708 Seconds is_array completed in 0.00092601776123047 Seconds
Output for 5.3.22
Cast completed in 0.30850386619568 Seconds is_array completed in 0.00094103813171387 Seconds
Output for 5.3.21
Cast completed in 0.31032299995422 Seconds is_array completed in 0.00091195106506348 Seconds
Output for 5.3.20
Cast completed in 0.32993412017822 Seconds is_array completed in 0.00096702575683594 Seconds
Output for 5.3.19
Cast completed in 0.31181287765503 Seconds is_array completed in 0.00091886520385742 Seconds
Output for 5.3.18
Cast completed in 0.30240297317505 Seconds is_array completed in 0.00094103813171387 Seconds
Output for 5.3.17
Cast completed in 0.27494192123413 Seconds is_array completed in 0.00096297264099121 Seconds
Output for 5.3.16
Cast completed in 0.33164000511169 Seconds is_array completed in 0.00098800659179688 Seconds
Output for 5.3.15
Cast completed in 0.3372631072998 Seconds is_array completed in 0.00095200538635254 Seconds
Output for 5.3.14
Cast completed in 0.29765009880066 Seconds is_array completed in 0.00092816352844238 Seconds
Output for 5.3.13
Cast completed in 0.34079098701477 Seconds is_array completed in 0.00095510482788086 Seconds
Output for 5.3.12
Cast completed in 0.30818819999695 Seconds is_array completed in 0.00092887878417969 Seconds
Output for 5.3.11
Cast completed in 0.28779983520508 Seconds is_array completed in 0.00092601776123047 Seconds
Output for 5.3.10
Cast completed in 0.30306816101074 Seconds is_array completed in 0.00091195106506348 Seconds
Output for 5.3.9
Cast completed in 0.29538297653198 Seconds is_array completed in 0.00097012519836426 Seconds
Output for 5.3.8
Cast completed in 0.256511926651 Seconds is_array completed in 0.0008242130279541 Seconds
Output for 5.3.7
Cast completed in 0.26855707168579 Seconds is_array completed in 0.00080490112304688 Seconds
Output for 5.3.6
Cast completed in 0.30755496025085 Seconds is_array completed in 0.00082516670227051 Seconds
Output for 5.3.5
Cast completed in 0.33612990379333 Seconds is_array completed in 0.00099611282348633 Seconds
Output for 5.3.4
Cast completed in 0.32369303703308 Seconds is_array completed in 0.0010890960693359 Seconds
Output for 5.3.3
Cast completed in 0.3426787853241 Seconds is_array completed in 0.0009620189666748 Seconds
Output for 5.3.2
Cast completed in 0.27373099327087 Seconds is_array completed in 0.00078392028808594 Seconds
Output for 5.3.1
Cast completed in 0.3137629032135 Seconds is_array completed in 0.00097179412841797 Seconds
Output for 5.3.0
Cast completed in 0.36170387268066 Seconds is_array completed in 0.00095391273498535 Seconds
Output for 5.2.17
Cast completed in 0.32325196266174 Seconds is_array completed in 0.00099492073059082 Seconds
Output for 5.2.16
Cast completed in 0.34056186676025 Seconds is_array completed in 0.001093864440918 Seconds
Output for 5.2.15
Cast completed in 0.33509421348572 Seconds is_array completed in 0.0010600090026855 Seconds
Output for 5.2.14
Cast completed in 0.31365013122559 Seconds is_array completed in 0.00099492073059082 Seconds
Output for 5.2.13
Cast completed in 0.32591080665588 Seconds is_array completed in 0.00096893310546875 Seconds
Output for 5.2.12
Cast completed in 0.34512209892273 Seconds is_array completed in 0.0010058879852295 Seconds
Output for 5.2.11
Cast completed in 0.34243607521057 Seconds is_array completed in 0.0012109279632568 Seconds
Output for 5.2.10
Cast completed in 0.32555103302002 Seconds is_array completed in 0.00099802017211914 Seconds
Output for 5.2.9
Cast completed in 0.33728790283203 Seconds is_array completed in 0.0010261535644531 Seconds
Output for 5.2.8
Cast completed in 0.30169010162354 Seconds is_array completed in 0.0010008811950684 Seconds
Output for 5.2.7
Cast completed in 0.31205201148987 Seconds is_array completed in 0.0010020732879639 Seconds
Output for 5.2.6
Cast completed in 0.33981800079346 Seconds is_array completed in 0.0010089874267578 Seconds
Output for 5.2.5
Cast completed in 0.30507302284241 Seconds is_array completed in 0.00098609924316406 Seconds
Output for 5.2.4
Cast completed in 0.31455588340759 Seconds is_array completed in 0.0010190010070801 Seconds
Output for 5.2.3
Cast completed in 0.31796884536743 Seconds is_array completed in 0.00099396705627441 Seconds
Output for 5.2.2
Cast completed in 0.31017708778381 Seconds is_array completed in 0.0010011196136475 Seconds
Output for 5.2.1
Cast completed in 0.36182808876038 Seconds is_array completed in 0.00098395347595215 Seconds
Output for 5.2.0
Cast completed in 0.33271718025208 Seconds is_array completed in 0.00098609924316406 Seconds
Output for 5.1.6
Cast completed in 0.51264381408691 Seconds is_array completed in 0.00096511840820312 Seconds
Output for 5.1.5
Cast completed in 0.57964587211609 Seconds is_array completed in 0.0010390281677246 Seconds
Output for 5.1.4
Cast completed in 0.52685713768005 Seconds is_array completed in 0.00097322463989258 Seconds
Output for 5.1.3
Cast completed in 0.51349091529846 Seconds is_array completed in 0.00099921226501465 Seconds
Output for 5.1.2
Cast completed in 0.52947187423706 Seconds is_array completed in 0.00097393989562988 Seconds
Output for 5.1.1
Cast completed in 0.49809980392456 Seconds is_array completed in 0.0009610652923584 Seconds
Output for 5.1.0
Cast completed in 0.43746495246887 Seconds is_array completed in 0.00084185600280762 Seconds
Output for 5.0.5
Cast completed in 0.45011615753174 Seconds is_array completed in 0.0019237995147705 Seconds
Output for 5.0.4
Cast completed in 0.51012182235718 Seconds is_array completed in 0.0021579265594482 Seconds
Output for 5.0.3
Cast completed in 0.46890211105347 Seconds is_array completed in 0.0016300678253174 Seconds
Output for 5.0.2
Cast completed in 0.47354388237 Seconds is_array completed in 0.0016529560089111 Seconds
Output for 5.0.1
Cast completed in 0.42846894264221 Seconds is_array completed in 0.0016520023345947 Seconds
Output for 5.0.0
Cast completed in 0.43899703025818 Seconds is_array completed in 0.0016820430755615 Seconds
Output for 4.4.9
Cast completed in 0.571696 Seconds is_array completed in 0.001957 Seconds
Output for 4.4.8
Cast completed in 0.485754 Seconds is_array completed in 0.001608 Seconds
Output for 4.4.7
Cast completed in 0.481604 Seconds is_array completed in 0.001665 Seconds
Output for 4.4.6
Cast completed in 0.579041 Seconds is_array completed in 0.0020380000000001 Seconds
Output for 4.4.5
Cast completed in 0.560714 Seconds is_array completed in 0.001954 Seconds
Output for 4.4.4
Cast completed in 0.552161 Seconds is_array completed in 0.0019899999999999 Seconds
Output for 4.4.3
Cast completed in 0.519803 Seconds is_array completed in 0.0019819999999999 Seconds
Output for 4.4.2
Cast completed in 0.566039 Seconds is_array completed in 0.002231 Seconds
Output for 4.4.1
Cast completed in 0.448514 Seconds is_array completed in 0.00171 Seconds
Output for 4.4.0
Cast completed in 0.474432 Seconds is_array completed in 0.001873 Seconds
Output for 4.3.11
Cast completed in 0.466946 Seconds is_array completed in 0.001615 Seconds
Output for 4.3.10
Cast completed in 0.418813 Seconds is_array completed in 0.001635 Seconds
Output for 4.3.9
Cast completed in 0.486424 Seconds is_array completed in 0.001589 Seconds
Output for 4.3.8
Cast completed in 0.55912 Seconds is_array completed in 0.00196 Seconds
Output for 4.3.7
Cast completed in 0.472917 Seconds is_array completed in 0.001692 Seconds
Output for 4.3.6
Cast completed in 0.480833 Seconds is_array completed in 0.001614 Seconds
Output for 4.3.5
Cast completed in 0.58837 Seconds is_array completed in 0.002167 Seconds
Output for 4.3.4
Cast completed in 0.562751 Seconds is_array completed in 0.001928 Seconds
Output for 4.3.3
Cast completed in 0.550888 Seconds is_array completed in 0.001999 Seconds
Output for 4.3.2
Cast completed in 0.562162 Seconds is_array completed in 0.001935 Seconds
Output for 4.3.1
Cast completed in 0.555546 Seconds is_array completed in 0.001918 Seconds
Output for 4.3.0
Cast completed in 0.558338 Seconds is_array completed in 0.00217 Seconds