3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n=100000; $a=1; $b=2; $start=microtime(1); for($i=1;$i<=$n;$i++) { if ($a!=$b) $c=$a+$b;else $c=8; } print (microtime(1)-$start).'<br>'; $start=microtime(1); for($i=1;$i<=$n;$i++) { $c=($a!=$b)?($a+$b):8; } print (microtime(1)-$start).'<br>';
Output for 7.1.0
0.0030021667480469<br>0.0032179355621338<br>
Output for 7.0.14
0.0027918815612793<br>0.0030920505523682<br>
Output for 7.0.10
0.0031869411468506<br>0.0032269954681396<br>
Output for 7.0.9
0.0026509761810303<br>0.0025899410247803<br>
Output for 7.0.8
0.0024549961090088<br>0.0021250247955322<br>
Output for 7.0.7
0.0026111602783203<br>0.0025701522827148<br>
Output for 7.0.6
0.0023019313812256<br>0.0023329257965088<br>
Output for 7.0.5
0.0026280879974365<br>0.0028579235076904<br>
Output for 7.0.4
0.0028209686279297<br>0.0029630661010742<br>
Output for 7.0.3
0.0022881031036377<br>0.0019869804382324<br>
Output for 7.0.2
0.0022568702697754<br>0.0021989345550537<br>
Output for 7.0.1
0.0028660297393799<br>0.0031390190124512<br>
Output for 7.0.0
0.0027379989624023<br>0.0030250549316406<br>
Output for 5.6.28
0.0065629482269287<br>0.0090749263763428<br>
Output for 5.6.25
0.0054950714111328<br>0.0051238536834717<br>
Output for 5.6.24
0.0066928863525391<br>0.0066280364990234<br>
Output for 5.6.23
0.0072309970855713<br>0.0073399543762207<br>
Output for 5.6.22
0.0056538581848145<br>0.0061800479888916<br>
Output for 5.6.21
0.0057199001312256<br>0.0059831142425537<br>
Output for 5.6.20
0.0066478252410889<br>0.0063109397888184<br>
Output for 5.6.19
0.0063140392303467<br>0.0051579475402832<br>
Output for 5.6.18
0.0061111450195312<br>0.0063619613647461<br>
Output for 5.6.17
0.0055840015411377<br>0.0057380199432373<br>
Output for 5.6.16
0.005479097366333<br>0.0057089328765869<br>
Output for 5.6.15
0.0046520233154297<br>0.0050301551818848<br>
Output for 5.6.14
0.006417989730835<br>0.0053279399871826<br>
Output for 5.6.13
0.0067598819732666<br>0.0066828727722168<br>
Output for 5.6.12
0.0061249732971191<br>0.0064659118652344<br>
Output for 5.6.11
0.0066831111907959<br>0.0068821907043457<br>
Output for 5.6.10
0.0058441162109375<br>0.0061171054840088<br>
Output for 5.6.9
0.0056009292602539<br>0.0059530735015869<br>
Output for 5.6.8
0.0066840648651123<br>0.0069441795349121<br>
Output for 5.6.7
0.0053799152374268<br>0.0057120323181152<br>
Output for 5.6.6
0.005730152130127<br>0.0059309005737305<br>
Output for 5.6.5
0.006464958190918<br>0.0067451000213623<br>
Output for 5.6.4
0.0051829814910889<br>0.0050480365753174<br>
Output for 5.6.3
0.0067510604858398<br>0.007194995880127<br>
Output for 5.6.2
0.0061500072479248<br>0.0062518119812012<br>
Output for 5.6.1
0.0055038928985596<br>0.0045661926269531<br>
Output for 5.6.0
0.0058610439300537<br>0.0064620971679688<br>
Output for 5.5.38
0.0059700012207031<br>0.0062358379364014<br>
Output for 5.5.37
0.006788969039917<br>0.0070571899414062<br>
Output for 5.5.36
0.0066738128662109<br>0.0063159465789795<br>
Output for 5.5.35
0.0064709186553955<br>0.0068728923797607<br>
Output for 5.5.34
0.0059909820556641<br>0.0054721832275391<br>
Output for 5.5.33
0.0052359104156494<br>0.0057120323181152<br>
Output for 5.5.32
0.0069231986999512<br>0.006295919418335<br>
Output for 5.5.31
0.0067529678344727<br>0.0073590278625488<br>
Output for 5.5.30
0.0065789222717285<br>0.0067849159240723<br>
Output for 5.5.29
0.006803035736084<br>0.0074670314788818<br>
Output for 5.5.28
0.005195140838623<br>0.0062031745910645<br>
Output for 5.5.27
0.0049831867218018<br>0.0058422088623047<br>
Output for 5.5.26
0.0040960311889648<br>0.004802942276001<br>
Output for 5.5.25
0.0067598819732666<br>0.0069499015808105<br>
Output for 5.5.24
0.0061359405517578<br>0.005424976348877<br>
Output for 5.5.23
0.0061018466949463<br>0.0059139728546143<br>
Output for 5.5.22
0.0063960552215576<br>0.0061628818511963<br>
Output for 5.5.21
0.0067338943481445<br>0.0056920051574707<br>
Output for 5.5.20
0.0058660507202148<br>0.0061779022216797<br>
Output for 5.5.19
0.0057361125946045<br>0.0061008930206299<br>
Output for 5.5.18
0.0061409473419189<br>0.0064280033111572<br>
Output for 5.5.16
0.0053868293762207<br>0.0057981014251709<br>
Output for 5.5.15
0.0065150260925293<br>0.006476879119873<br>
Output for 5.5.14
0.0049779415130615<br>0.0050821304321289<br>
Output for 5.5.13
0.0057439804077148<br>0.0059149265289307<br>
Output for 5.5.12
0.0067570209503174<br>0.0072391033172607<br>
Output for 5.5.11
0.0067400932312012<br>0.0068092346191406<br>
Output for 5.5.10
0.0056390762329102<br>0.0059378147125244<br>
Output for 5.5.9
0.006464958190918<br>0.0069489479064941<br>
Output for 5.5.8
0.010128021240234<br>0.0089671611785889<br>
Output for 5.5.7
0.0051939487457275<br>0.0054891109466553<br>
Output for 5.5.6
0.0081970691680908<br>0.0088541507720947<br>
Output for 5.5.5
0.0064809322357178<br>0.0068140029907227<br>
Output for 5.5.4
0.0054779052734375<br>0.0055410861968994<br>
Output for 5.5.3
0.0058929920196533<br>0.0060780048370361<br>
Output for 5.5.2
0.0056068897247314<br>0.0067651271820068<br>
Output for 5.5.1
0.0059750080108643<br>0.0060989856719971<br>
Output for 5.5.0
0.0048670768737793<br>0.0059139728546143<br>
Output for 5.4.45
0.0050480365753174<br>0.0054500102996826<br>
Output for 5.4.44
0.0049960613250732<br>0.0051770210266113<br>
Output for 5.4.43
0.0059120655059814<br>0.006371021270752<br>
Output for 5.4.42
0.0065720081329346<br>0.0054638385772705<br>
Output for 5.4.41
0.0061600208282471<br>0.006587028503418<br>
Output for 5.4.40
0.0064060688018799<br>0.0060520172119141<br>
Output for 5.4.39
0.0068869590759277<br>0.0072939395904541<br>
Output for 5.4.38
0.0056459903717041<br>0.006072998046875<br>
Output for 5.4.37
0.0061860084533691<br>0.0063090324401855<br>
Output for 5.4.36
0.0066461563110352<br>0.0060789585113525<br>
Output for 5.4.35
0.0069308280944824<br>0.0072638988494873<br>
Output for 5.4.34
0.0048141479492188<br>0.0050899982452393<br>
Output for 5.4.32
0.0067360401153564<br>0.0071661472320557<br>
Output for 5.4.31
0.0061450004577637<br>0.0065619945526123<br>
Output for 5.4.30
0.0064041614532471<br>0.0066959857940674<br>
Output for 5.4.29
0.0067968368530273<br>0.0070590972900391<br>
Output for 5.4.28
0.0052070617675781<br>0.0061659812927246<br>
Output for 5.4.27
0.0058870315551758<br>0.0065100193023682<br>
Output for 5.4.26
0.0048530101776123<br>0.0059309005737305<br>
Output for 5.4.25
0.0051970481872559<br>0.0051860809326172<br>
Output for 5.4.24
0.0052359104156494<br>0.0056099891662598<br>
Output for 5.4.23
0.0054330825805664<br>0.0057990550994873<br>
Output for 5.4.22
0.0062119960784912<br>0.006397008895874<br>
Output for 5.4.21
0.0062069892883301<br>0.0066511631011963<br>
Output for 5.4.20
0.0064210891723633<br>0.0069608688354492<br>
Output for 5.4.19
0.0053818225860596<br>0.006220817565918<br>
Output for 5.4.18
0.0061638355255127<br>0.0058999061584473<br>
Output for 5.4.17
0.0069818496704102<br>0.0071780681610107<br>
Output for 5.4.16
0.0061409473419189<br>0.005573034286499<br>
Output for 5.4.15
0.0063760280609131<br>0.0060899257659912<br>
Output for 5.4.14
0.0061681270599365<br>0.0065810680389404<br>
Output for 5.4.13
0.0056118965148926<br>0.0065999031066895<br>
Output for 5.4.12
0.0073788166046143<br>0.0073311328887939<br>
Output for 5.4.11
0.0067720413208008<br>0.0065140724182129<br>
Output for 5.4.10
0.0072338581085205<br>0.0072779655456543<br>
Output for 5.4.9
0.0063908100128174<br>0.006659984588623<br>
Output for 5.4.8
0.0064389705657959<br>0.0068438053131104<br>
Output for 5.4.7
0.0062952041625977<br>0.0067589282989502<br>
Output for 5.4.6
0.006803035736084<br>0.0072660446166992<br>
Output for 5.4.5
0.006864070892334<br>0.0073690414428711<br>
Output for 5.4.4
0.0065100193023682<br>0.0066919326782227<br>
Output for 5.4.3
0.0071079730987549<br>0.007573127746582<br>
Output for 5.4.2
0.0071570873260498<br>0.0073800086975098<br>
Output for 5.4.1
0.0061430931091309<br>0.0056250095367432<br>
Output for 5.4.0
0.0071749687194824<br>0.007465124130249<br>
Output for 5.3.29
0.0089528560638428<br>0.0076298713684082<br>
Output for 5.3.28
0.0093679428100586<br>0.0078549385070801<br>
Output for 5.3.27
0.0085330009460449<br>0.0087118148803711<br>
Output for 5.3.26
0.006195068359375<br>0.006554126739502<br>
Output for 5.3.25
0.008601188659668<br>0.0086507797241211<br>
Output for 5.3.24
0.0082738399505615<br>0.0087599754333496<br>
Output for 5.3.23
0.0074660778045654<br>0.0080280303955078<br>
Output for 5.3.22
0.0070858001708984<br>0.0076529979705811<br>
Output for 5.3.21
0.008638858795166<br>0.0088398456573486<br>
Output for 5.3.20
0.0081110000610352<br>0.0075619220733643<br>
Output for 5.3.19
0.0081219673156738<br>0.0069320201873779<br>
Output for 5.3.18
0.0095891952514648<br>0.010127067565918<br>
Output for 5.3.17
0.009227991104126<br>0.0082778930664062<br>
Output for 5.3.16
0.0077600479125977<br>0.0094659328460693<br>
Output for 5.3.15
0.0086491107940674<br>0.0090451240539551<br>
Output for 5.3.14
0.010231018066406<br>0.011016130447388<br>
Output for 5.3.13
0.0084598064422607<br>0.0091769695281982<br>
Output for 5.3.12
0.0095920562744141<br>0.0099508762359619<br>
Output for 5.3.11
0.010428905487061<br>0.010580062866211<br>
Output for 5.3.10
0.0095179080963135<br>0.009458065032959<br>
Output for 5.3.9
0.0086798667907715<br>0.0081090927124023<br>
Output for 5.3.8
0.0071561336517334<br>0.0081658363342285<br>
Output for 5.3.7
0.0090820789337158<br>0.0097930431365967<br>
Output for 5.3.6
0.01016902923584<br>0.010708808898926<br>
Output for 5.3.5
0.0089070796966553<br>0.0081448554992676<br>
Output for 5.3.4
0.0087940692901611<br>0.009174108505249<br>
Output for 5.3.3
0.0095961093902588<br>0.010018110275269<br>
Output for 5.3.2
0.0082111358642578<br>0.0084209442138672<br>
Output for 5.3.1
0.010715007781982<br>0.01042914390564<br>
Output for 5.3.0
0.0087840557098389<br>0.0092000961303711<br>
Output for 5.2.17
0.014096975326538<br>0.013746023178101<br>
Output for 5.2.16
0.013005018234253<br>0.012736082077026<br>
Output for 5.2.15
0.01559591293335<br>0.014626026153564<br>
Output for 5.2.14
0.014204978942871<br>0.014252901077271<br>
Output for 5.2.13
0.015810966491699<br>0.015006065368652<br>
Output for 5.2.12
0.015576839447021<br>0.014743804931641<br>
Output for 5.2.11
0.012897968292236<br>0.012715101242065<br>
Output for 5.2.10
0.013082027435303<br>0.012212991714478<br>
Output for 5.2.9
0.010544776916504<br>0.011442899703979<br>
Output for 5.2.8
0.0086679458618164<br>0.0087618827819824<br>
Output for 5.2.7
0.015427827835083<br>0.013465881347656<br>
Output for 5.2.6
0.011388063430786<br>0.011813163757324<br>
Output for 5.2.5
0.0088441371917725<br>0.0088880062103271<br>
Output for 5.2.4
0.010509014129639<br>0.010478973388672<br>
Output for 5.2.3
0.0086929798126221<br>0.0095160007476807<br>
Output for 5.2.2
0.013588190078735<br>0.011795043945312<br>
Output for 5.2.1
0.010907173156738<br>0.010209798812866<br>
Output for 5.2.0
0.01400899887085<br>0.010301113128662<br>
Output for 5.1.6
0.010369062423706<br>0.0096259117126465<br>
Output for 5.1.5
0.0096359252929688<br>0.0095069408416748<br>
Output for 5.1.4
0.0092711448669434<br>0.0089700222015381<br>
Output for 5.1.3
0.011761903762817<br>0.011523962020874<br>
Output for 5.1.2
0.0096211433410645<br>0.009674072265625<br>
Output for 5.1.1
0.01570200920105<br>0.015429019927979<br>
Output for 5.1.0
0.010002136230469<br>0.010245084762573<br>
Output for 5.0.5
0.028251886367798<br>0.028807878494263<br>
Output for 5.0.4
0.027915000915527<br>0.028116941452026<br>
Output for 5.0.3
0.036525011062622<br>0.03338098526001<br>
Output for 5.0.2
0.028066873550415<br>0.02828311920166<br>
Output for 5.0.1
0.046514987945557<br>0.034405946731567<br>
Output for 5.0.0
0.041997909545898<br>0.038140058517456<br>
Output for 4.4.9
0.027899<br>0.02825<br>
Output for 4.4.8
0.031779<br>0.029552<br>
Output for 4.4.7
0.027118<br>0.028785<br>
Output for 4.4.6
0.029969<br>0.030734<br>
Output for 4.4.5
0.029017<br>0.028556<br>
Output for 4.4.4
0.0344<br>0.032198<br>
Output for 4.4.3
0.030006<br>0.030654<br>
Output for 4.4.2
0.028612<br>0.0289<br>
Output for 4.4.1
0.027733<br>0.028157<br>
Output for 4.4.0
0.038479<br>0.034826<br>
Output for 4.3.11
0.028058<br>0.028175<br>
Output for 4.3.10
0.046828<br>0.039964<br>
Output for 4.3.9
0.030655<br>0.028737<br>
Output for 4.3.8
0.031064<br>0.029451<br>
Output for 4.3.7
0.029065<br>0.02952<br>
Output for 4.3.6
0.049854<br>0.041981<br>
Output for 4.3.5
0.023552<br>0.023787<br>
Output for 4.3.4
0.02736<br>0.027754<br>
Output for 4.3.3
0.026403<br>0.027124<br>
Output for 4.3.2
0.034215<br>0.031269<br>
Output for 4.3.1
0.025357<br>0.0263<br>
Output for 4.3.0
0.050819<br>0.036506<br>