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++) is_array($array); $e = microtime(true); echo "is_array completed in " . ($e - $s) ." Seconds\n"; $s = microtime(true); for ($i = 0; $i < $iterations; $i++) $array === (array) $array; $e = microtime(true); echo "Cast completed in " . ($e - $s) ." Seconds\n";
Output for 7.1.0
is_array completed in 0.00013422966003418 Seconds Cast completed in 0.00021505355834961 Seconds
Output for 7.0.14
is_array completed in 0.00046801567077637 Seconds Cast completed in 0.00062394142150879 Seconds
Output for 7.0.7
is_array completed in 0.00021100044250488 Seconds Cast completed in 0.00034594535827637 Seconds
Output for 7.0.6
is_array completed in 0.00013017654418945 Seconds Cast completed in 0.00023007392883301 Seconds
Output for 7.0.5
is_array completed in 0.00012111663818359 Seconds Cast completed in 0.00020909309387207 Seconds
Output for 7.0.4
is_array completed in 0.00021600723266602 Seconds Cast completed in 0.00037598609924316 Seconds
Output for 7.0.3
is_array completed in 0.00021719932556152 Seconds Cast completed in 0.00040602684020996 Seconds
Output for 7.0.2
is_array completed in 0.00017285346984863 Seconds Cast completed in 0.00028300285339355 Seconds
Output for 7.0.1
is_array completed in 0.00018000602722168 Seconds Cast completed in 0.00029706954956055 Seconds
Output for 7.0.0
is_array completed in 0.00020599365234375 Seconds Cast completed in 0.00037193298339844 Seconds
Output for hhvm-3.12.0
is_array completed in 0.00055599212646484 Seconds Cast completed in 0.00080490112304688 Seconds
Output for hhvm-3.10.0
is_array completed in 0.00052690505981445 Seconds Cast completed in 0.00081396102905273 Seconds
Output for 5.6.28
is_array completed in 0.0012748241424561 Seconds Cast completed in 0.33108496665955 Seconds
Output for 5.6.22
is_array completed in 0.00090193748474121 Seconds Cast completed in 0.30940914154053 Seconds
Output for 5.6.21
is_array completed in 0.00097393989562988 Seconds Cast completed in 0.30310583114624 Seconds
Output for 5.6.20
is_array completed in 0.0010700225830078 Seconds Cast completed in 0.27764081954956 Seconds
Output for 5.6.19
is_array completed in 0.0011661052703857 Seconds Cast completed in 0.29275417327881 Seconds
Output for 5.6.18
is_array completed in 0.00075793266296387 Seconds Cast completed in 0.28037405014038 Seconds
Output for 5.6.17
is_array completed in 0.0012669563293457 Seconds Cast completed in 0.30359387397766 Seconds
Output for 5.6.16
is_array completed in 0.001305103302002 Seconds Cast completed in 0.32156991958618 Seconds
Output for 5.6.15
is_array completed in 0.0011940002441406 Seconds Cast completed in 0.30263614654541 Seconds
Output for 5.6.14
is_array completed in 0.0010900497436523 Seconds Cast completed in 0.30670404434204 Seconds
Output for 5.6.13
is_array completed in 0.0012509822845459 Seconds Cast completed in 0.30668687820435 Seconds
Output for 5.6.12
is_array completed in 0.0011498928070068 Seconds Cast completed in 0.32800793647766 Seconds
Output for 5.6.11
is_array completed in 0.0012259483337402 Seconds Cast completed in 0.32168197631836 Seconds
Output for 5.6.10
is_array completed in 0.0012381076812744 Seconds Cast completed in 0.32745599746704 Seconds
Output for 5.6.9
is_array completed in 0.00097417831420898 Seconds Cast completed in 0.29668498039246 Seconds
Output for 5.6.8
is_array completed in 0.0012760162353516 Seconds Cast completed in 0.3544008731842 Seconds
Output for 5.6.7
is_array completed in 0.0012640953063965 Seconds Cast completed in 0.33104395866394 Seconds
Output for 5.6.6
is_array completed in 0.0013959407806396 Seconds Cast completed in 0.32749104499817 Seconds
Output for 5.6.5
is_array completed in 0.0011727809906006 Seconds Cast completed in 0.32044887542725 Seconds
Output for 5.6.4
is_array completed in 0.0011630058288574 Seconds Cast completed in 0.34419202804565 Seconds
Output for 5.6.3
is_array completed in 0.0011658668518066 Seconds Cast completed in 0.30174684524536 Seconds
Output for 5.6.2
is_array completed in 0.0012409687042236 Seconds Cast completed in 0.31526494026184 Seconds
Output for 5.6.1
is_array completed in 0.0011730194091797 Seconds Cast completed in 0.29942917823792 Seconds
Output for 5.6.0
is_array completed in 0.001086950302124 Seconds Cast completed in 0.3086199760437 Seconds
Output for 5.5.36
is_array completed in 0.0012540817260742 Seconds Cast completed in 0.33100509643555 Seconds
Output for 5.5.35
is_array completed in 0.0013308525085449 Seconds Cast completed in 0.33362603187561 Seconds
Output for 5.5.34
is_array completed in 0.0012390613555908 Seconds Cast completed in 0.29827809333801 Seconds
Output for 5.5.33
is_array completed in 0.0013079643249512 Seconds Cast completed in 0.33115100860596 Seconds
Output for 5.5.32
is_array completed in 0.0012989044189453 Seconds Cast completed in 0.36423087120056 Seconds
Output for 5.5.31
is_array completed in 0.0011498928070068 Seconds Cast completed in 0.31469416618347 Seconds
Output for 5.5.30
is_array completed in 0.0010440349578857 Seconds Cast completed in 0.2976930141449 Seconds
Output for 5.5.29
is_array completed in 0.0012731552124023 Seconds Cast completed in 0.32177186012268 Seconds
Output for 5.5.28
is_array completed in 0.00130295753479 Seconds Cast completed in 0.3268129825592 Seconds
Output for 5.5.27
is_array completed in 0.0012850761413574 Seconds Cast completed in 0.34632015228271 Seconds
Output for 5.5.26
is_array completed in 0.00072908401489258 Seconds Cast completed in 0.29890894889832 Seconds
Output for 5.5.25
is_array completed in 0.0012190341949463 Seconds Cast completed in 0.31935000419617 Seconds
Output for 5.5.24
is_array completed in 0.001276969909668 Seconds Cast completed in 0.34097099304199 Seconds
Output for 5.5.23
is_array completed in 0.0010168552398682 Seconds Cast completed in 0.30421304702759 Seconds
Output for 5.5.22
is_array completed in 0.0011889934539795 Seconds Cast completed in 0.34231209754944 Seconds
Output for 5.5.21
is_array completed in 0.0013420581817627 Seconds Cast completed in 0.34582996368408 Seconds
Output for 5.5.20
is_array completed in 0.00080180168151855 Seconds Cast completed in 0.31905603408813 Seconds
Output for 5.5.19
is_array completed in 0.00074291229248047 Seconds Cast completed in 0.27494812011719 Seconds
Output for 5.5.18
is_array completed in 0.00067782402038574 Seconds Cast completed in 0.24346685409546 Seconds
Output for 5.5.16
is_array completed in 0.0012929439544678 Seconds Cast completed in 0.32303905487061 Seconds
Output for 5.5.15
is_array completed in 0.0013358592987061 Seconds Cast completed in 0.32937693595886 Seconds
Output for 5.5.14
is_array completed in 0.0013189315795898 Seconds Cast completed in 0.33651185035706 Seconds
Output for 5.5.13
is_array completed in 0.0013580322265625 Seconds Cast completed in 0.35365295410156 Seconds
Output for 5.5.12
is_array completed in 0.00089097023010254 Seconds Cast completed in 0.30147504806519 Seconds
Output for 5.5.11
is_array completed in 0.0012547969818115 Seconds Cast completed in 0.29944801330566 Seconds
Output for 5.5.10
is_array completed in 0.0013689994812012 Seconds Cast completed in 0.35467410087585 Seconds
Output for 5.5.9
is_array completed in 0.0010159015655518 Seconds Cast completed in 0.32986307144165 Seconds
Output for 5.5.8
is_array completed in 0.0010781288146973 Seconds Cast completed in 0.34223198890686 Seconds
Output for 5.5.7
is_array completed in 0.00096487998962402 Seconds Cast completed in 0.32434391975403 Seconds
Output for 5.5.6
is_array completed in 0.0011880397796631 Seconds Cast completed in 0.3192880153656 Seconds
Output for 5.5.5
is_array completed in 0.0010688304901123 Seconds Cast completed in 0.29565000534058 Seconds
Output for 5.5.4
is_array completed in 0.0010359287261963 Seconds Cast completed in 0.30804705619812 Seconds
Output for 5.5.3
is_array completed in 0.0010690689086914 Seconds Cast completed in 0.32769107818604 Seconds
Output for 5.5.2
is_array completed in 0.0008080005645752 Seconds Cast completed in 0.2945249080658 Seconds
Output for 5.5.1
is_array completed in 0.00078916549682617 Seconds Cast completed in 0.29298305511475 Seconds
Output for 5.5.0
is_array completed in 0.00062894821166992 Seconds Cast completed in 0.2433660030365 Seconds
Output for 5.4.45
is_array completed in 0.0012071132659912 Seconds Cast completed in 0.31749200820923 Seconds
Output for 5.4.44
is_array completed in 0.0012378692626953 Seconds Cast completed in 0.32508587837219 Seconds
Output for 5.4.43
is_array completed in 0.0013079643249512 Seconds Cast completed in 0.38379096984863 Seconds
Output for 5.4.42
is_array completed in 0.0012331008911133 Seconds Cast completed in 0.30156993865967 Seconds
Output for 5.4.41
is_array completed in 0.0010750293731689 Seconds Cast completed in 0.30005192756653 Seconds
Output for 5.4.40
is_array completed in 0.0013270378112793 Seconds Cast completed in 0.32940888404846 Seconds
Output for 5.4.39
is_array completed in 0.00075101852416992 Seconds Cast completed in 0.29819202423096 Seconds
Output for 5.4.38
is_array completed in 0.0012650489807129 Seconds Cast completed in 0.33685302734375 Seconds
Output for 5.4.37
is_array completed in 0.0012459754943848 Seconds Cast completed in 0.32862401008606 Seconds
Output for 5.4.36
is_array completed in 0.0010199546813965 Seconds Cast completed in 0.32714605331421 Seconds
Output for 5.4.35
is_array completed in 0.0016810894012451 Seconds Cast completed in 0.33610486984253 Seconds
Output for 5.4.34
is_array completed in 0.0013411045074463 Seconds Cast completed in 0.32166790962219 Seconds
Output for 5.4.32
is_array completed in 0.0011579990386963 Seconds Cast completed in 0.34063601493835 Seconds
Output for 5.4.31
is_array completed in 0.0011348724365234 Seconds Cast completed in 0.32223510742188 Seconds
Output for 5.4.30
is_array completed in 0.0012679100036621 Seconds Cast completed in 0.34761381149292 Seconds
Output for 5.4.29
is_array completed in 0.001093864440918 Seconds Cast completed in 0.33019423484802 Seconds
Output for 5.4.28
is_array completed in 0.0012998580932617 Seconds Cast completed in 0.32075309753418 Seconds
Output for 5.4.27
is_array completed in 0.00079703330993652 Seconds Cast completed in 0.30439496040344 Seconds
Output for 5.4.26
is_array completed in 0.0013020038604736 Seconds Cast completed in 0.34005784988403 Seconds
Output for 5.4.25
is_array completed in 0.0012059211730957 Seconds Cast completed in 0.31937193870544 Seconds
Output for 5.4.24
is_array completed in 0.0013628005981445 Seconds Cast completed in 0.3497519493103 Seconds
Output for 5.4.23
is_array completed in 0.0012621879577637 Seconds Cast completed in 0.34687900543213 Seconds
Output for 5.4.22
is_array completed in 0.0007789134979248 Seconds Cast completed in 0.28351402282715 Seconds
Output for 5.4.21
is_array completed in 0.0011301040649414 Seconds Cast completed in 0.30375099182129 Seconds
Output for 5.4.20
is_array completed in 0.001305103302002 Seconds Cast completed in 0.34613800048828 Seconds
Output for 5.4.19
is_array completed in 0.00073695182800293 Seconds Cast completed in 0.2832190990448 Seconds
Output for 5.4.18
is_array completed in 0.00075793266296387 Seconds Cast completed in 0.30037999153137 Seconds
Output for 5.4.17
is_array completed in 0.0011329650878906 Seconds Cast completed in 0.30069994926453 Seconds
Output for 5.4.16
is_array completed in 0.00077104568481445 Seconds Cast completed in 0.28092312812805 Seconds
Output for 5.4.15
is_array completed in 0.0012750625610352 Seconds Cast completed in 0.33883595466614 Seconds
Output for 5.4.14
is_array completed in 0.00078296661376953 Seconds Cast completed in 0.30156588554382 Seconds
Output for 5.4.13
is_array completed in 0.001392126083374 Seconds Cast completed in 0.34700298309326 Seconds
Output for 5.4.12
is_array completed in 0.0013999938964844 Seconds Cast completed in 0.3363139629364 Seconds
Output for 5.4.11
is_array completed in 0.0011458396911621 Seconds Cast completed in 0.3101749420166 Seconds
Output for 5.4.10
is_array completed in 0.00075078010559082 Seconds Cast completed in 0.30409216880798 Seconds
Output for 5.4.9
is_array completed in 0.0013370513916016 Seconds Cast completed in 0.35965609550476 Seconds
Output for 5.4.8
is_array completed in 0.0014429092407227 Seconds Cast completed in 0.34001588821411 Seconds
Output for 5.4.7
is_array completed in 0.0012691020965576 Seconds Cast completed in 0.32286715507507 Seconds
Output for 5.4.6
is_array completed in 0.0010428428649902 Seconds Cast completed in 0.29305720329285 Seconds
Output for 5.4.5
is_array completed in 0.0013999938964844 Seconds Cast completed in 0.33039283752441 Seconds
Output for 5.4.4
is_array completed in 0.0013270378112793 Seconds Cast completed in 0.33645415306091 Seconds
Output for 5.4.3
is_array completed in 0.001176118850708 Seconds Cast completed in 0.34525895118713 Seconds
Output for 5.4.2
is_array completed in 0.0010578632354736 Seconds Cast completed in 0.34005999565125 Seconds
Output for 5.4.1
is_array completed in 0.00075197219848633 Seconds Cast completed in 0.31384110450745 Seconds
Output for 5.4.0
is_array completed in 0.00076103210449219 Seconds Cast completed in 0.29088091850281 Seconds
Output for 5.3.29
is_array completed in 0.0014569759368896 Seconds Cast completed in 0.32483100891113 Seconds
Output for 5.3.28
is_array completed in 0.00092315673828125 Seconds Cast completed in 0.2917320728302 Seconds
Output for 5.3.27
is_array completed in 0.00077104568481445 Seconds Cast completed in 0.25610399246216 Seconds
Output for 5.3.26
is_array completed in 0.0011961460113525 Seconds Cast completed in 0.31214284896851 Seconds
Output for 5.3.25
is_array completed in 0.0014209747314453 Seconds Cast completed in 0.30112791061401 Seconds
Output for 5.3.24
is_array completed in 0.001633882522583 Seconds Cast completed in 0.34071397781372 Seconds
Output for 5.3.23
is_array completed in 0.0016260147094727 Seconds Cast completed in 0.33430099487305 Seconds
Output for 5.3.22
is_array completed in 0.001162052154541 Seconds Cast completed in 0.29565501213074 Seconds
Output for 5.3.21
is_array completed in 0.0013000965118408 Seconds Cast completed in 0.31071901321411 Seconds
Output for 5.3.20
is_array completed in 0.0014309883117676 Seconds Cast completed in 0.30426692962646 Seconds
Output for 5.3.19
is_array completed in 0.001309871673584 Seconds Cast completed in 0.3127179145813 Seconds
Output for 5.3.18
is_array completed in 0.0017359256744385 Seconds Cast completed in 0.34657502174377 Seconds
Output for 5.3.17
is_array completed in 0.0014410018920898 Seconds Cast completed in 0.29897999763489 Seconds
Output for 5.3.16
is_array completed in 0.00094485282897949 Seconds Cast completed in 0.24530911445618 Seconds
Output for 5.3.15
is_array completed in 0.0013699531555176 Seconds Cast completed in 0.28426098823547 Seconds
Output for 5.3.14
is_array completed in 0.0011260509490967 Seconds Cast completed in 0.24783778190613 Seconds
Output for 5.3.13
is_array completed in 0.0017139911651611 Seconds Cast completed in 0.31556701660156 Seconds
Output for 5.3.12
is_array completed in 0.0016059875488281 Seconds Cast completed in 0.32452988624573 Seconds
Output for 5.3.11
is_array completed in 0.0016109943389893 Seconds Cast completed in 0.31051588058472 Seconds
Output for 5.3.10
is_array completed in 0.0014388561248779 Seconds Cast completed in 0.30536603927612 Seconds
Output for 5.3.9
is_array completed in 0.0014398097991943 Seconds Cast completed in 0.32862877845764 Seconds
Output for 5.3.8
is_array completed in 0.0013649463653564 Seconds Cast completed in 0.29459118843079 Seconds
Output for 5.3.7
is_array completed in 0.0010929107666016 Seconds Cast completed in 0.30138206481934 Seconds
Output for 5.3.6
is_array completed in 0.00094199180603027 Seconds Cast completed in 0.30380201339722 Seconds
Output for 5.3.5
is_array completed in 0.0019009113311768 Seconds Cast completed in 0.35078692436218 Seconds
Output for 5.3.4
is_array completed in 0.0015459060668945 Seconds Cast completed in 0.31716299057007 Seconds
Output for 5.3.3
is_array completed in 0.0016250610351562 Seconds Cast completed in 0.30989480018616 Seconds
Output for 5.3.2
is_array completed in 0.0016899108886719 Seconds Cast completed in 0.31929802894592 Seconds
Output for 5.3.1
is_array completed in 0.0014441013336182 Seconds Cast completed in 0.31058406829834 Seconds
Output for 5.3.0
is_array completed in 0.0011000633239746 Seconds Cast completed in 0.32262897491455 Seconds
Output for 5.2.17
is_array completed in 0.0016257762908936 Seconds Cast completed in 0.31092500686646 Seconds
Output for 5.2.16
is_array completed in 0.0019559860229492 Seconds Cast completed in 0.348228931427 Seconds
Output for 5.2.15
is_array completed in 0.0018608570098877 Seconds Cast completed in 0.33129811286926 Seconds
Output for 5.2.14
is_array completed in 0.0015759468078613 Seconds Cast completed in 0.31164908409119 Seconds
Output for 5.2.13
is_array completed in 0.0010380744934082 Seconds Cast completed in 0.29172992706299 Seconds
Output for 5.2.12
is_array completed in 0.0019030570983887 Seconds Cast completed in 0.3326518535614 Seconds
Output for 5.2.11
is_array completed in 0.001619815826416 Seconds Cast completed in 0.33225417137146 Seconds
Output for 5.2.10
is_array completed in 0.0017619132995605 Seconds Cast completed in 0.31191301345825 Seconds
Output for 5.2.9
is_array completed in 0.0016729831695557 Seconds Cast completed in 0.32377004623413 Seconds
Output for 5.2.8
is_array completed in 0.0014698505401611 Seconds Cast completed in 0.30603384971619 Seconds
Output for 5.2.7
is_array completed in 0.0010600090026855 Seconds Cast completed in 0.35922384262085 Seconds
Output for 5.2.6
is_array completed in 0.0010020732879639 Seconds Cast completed in 0.26364016532898 Seconds
Output for 5.2.5
is_array completed in 0.0010859966278076 Seconds Cast completed in 0.28649187088013 Seconds
Output for 5.2.4
is_array completed in 0.0010371208190918 Seconds Cast completed in 0.29352617263794 Seconds
Output for 5.2.3
is_array completed in 0.0018157958984375 Seconds Cast completed in 0.33846402168274 Seconds
Output for 5.2.2
is_array completed in 0.0016410350799561 Seconds Cast completed in 0.28547811508179 Seconds
Output for 5.2.1
is_array completed in 0.0016160011291504 Seconds Cast completed in 0.38032507896423 Seconds
Output for 5.2.0
is_array completed in 0.0016591548919678 Seconds Cast completed in 0.35630393028259 Seconds
Output for 5.1.6
is_array completed in 0.002802848815918 Seconds Cast completed in 0.55007195472717 Seconds
Output for 5.1.5
is_array completed in 0.0011699199676514 Seconds Cast completed in 0.54184293746948 Seconds
Output for 5.1.4
is_array completed in 0.0015208721160889 Seconds Cast completed in 0.5339150428772 Seconds
Output for 5.1.3
is_array completed in 0.0017008781433105 Seconds Cast completed in 0.52694606781006 Seconds
Output for 5.1.2
is_array completed in 0.0016798973083496 Seconds Cast completed in 0.56533312797546 Seconds
Output for 5.1.1
is_array completed in 0.0013060569763184 Seconds Cast completed in 0.51931285858154 Seconds
Output for 5.1.0
is_array completed in 0.0018179416656494 Seconds Cast completed in 0.57154512405396 Seconds
Output for 5.0.5
is_array completed in 0.0038909912109375 Seconds Cast completed in 0.55486607551575 Seconds
Output for 5.0.4
is_array completed in 0.003101110458374 Seconds Cast completed in 0.55154490470886 Seconds
Output for 5.0.3
is_array completed in 0.0038909912109375 Seconds Cast completed in 0.5562150478363 Seconds
Output for 5.0.2
is_array completed in 0.0036900043487549 Seconds Cast completed in 0.55754494667053 Seconds
Output for 5.0.1
is_array completed in 0.0040390491485596 Seconds Cast completed in 0.54753184318542 Seconds
Output for 5.0.0
is_array completed in 0.0037400722503662 Seconds Cast completed in 0.54171204566956 Seconds
Output for 4.4.9
is_array completed in 0.004147 Seconds Cast completed in 0.552311 Seconds
Output for 4.4.8
is_array completed in 0.004469 Seconds Cast completed in 0.568691 Seconds
Output for 4.4.7
is_array completed in 0.004034 Seconds Cast completed in 0.571598 Seconds
Output for 4.4.6
is_array completed in 0.004371 Seconds Cast completed in 0.594749 Seconds
Output for 4.4.5
is_array completed in 0.00338 Seconds Cast completed in 0.545967 Seconds
Output for 4.4.4
is_array completed in 0.003096 Seconds Cast completed in 0.551968 Seconds
Output for 4.4.3
is_array completed in 0.003297 Seconds Cast completed in 0.538247 Seconds
Output for 4.4.2
is_array completed in 0.003847 Seconds Cast completed in 0.574007 Seconds
Output for 4.4.1
is_array completed in 0.004378 Seconds Cast completed in 0.597712 Seconds
Output for 4.4.0
is_array completed in 0.003857 Seconds Cast completed in 0.548166 Seconds
Output for 4.3.11
is_array completed in 0.004677 Seconds Cast completed in 0.592782 Seconds
Output for 4.3.10
is_array completed in 0.002414 Seconds Cast completed in 0.534508 Seconds
Output for 4.3.9
is_array completed in 0.004174 Seconds Cast completed in 0.565849 Seconds
Output for 4.3.8
is_array completed in 0.003634 Seconds Cast completed in 0.586073 Seconds
Output for 4.3.7
is_array completed in 0.004269 Seconds Cast completed in 0.558523 Seconds
Output for 4.3.6
is_array completed in 0.003751 Seconds Cast completed in 0.590372 Seconds
Output for 4.3.5
is_array completed in 0.004209 Seconds Cast completed in 0.589606 Seconds
Output for 4.3.4
is_array completed in 0.001952 Seconds Cast completed in 0.490409 Seconds
Output for 4.3.3
is_array completed in 0.004036 Seconds Cast completed in 0.588783 Seconds
Output for 4.3.2
is_array completed in 0.003823 Seconds Cast completed in 0.592125 Seconds
Output for 4.3.1
is_array completed in 0.00423 Seconds Cast completed in 0.541585 Seconds
Output for 4.3.0
is_array completed in 0.005074 Seconds Cast completed in 0.59158 Seconds