3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test1() { $s = microtime(true); for($i = 0;$i < 1000000; $i++) { $a = 0b10010111100101001 + 0b11100101001100101; } return microtime(true) - $s; } function test2() { $s = microtime(true); for($i = 0;$i < 1000000; $i++) { $a = 0123123 + 023454; } return microtime(true) - $s; } function test3() { $s = microtime(true); for($i = 0;$i < 1000000; $i++) { $a = 0xFAC + 0x234; } return microtime(true) - $s; } echo 0b10010111100101001 . "\n"; echo 0b11100101001100101 . "\n"; echo test1() . "\n"; echo test2() . "\n"; echo test3() . "\n";
Output for 7.1.0
77609 117349 0.017673969268799 0.016387939453125 0.01592493057251
Output for 7.0.14
77609 117349 0.016783952713013 0.015376091003418 0.014477014541626
Output for 7.0.6
77609 117349 0.01323413848877 0.012615919113159 0.012147903442383
Output for 7.0.5
77609 117349 0.014785051345825 0.013916969299316 0.01308012008667
Output for 7.0.4
77609 117349 0.011487007141113 0.011001110076904 0.010552883148193
Output for 7.0.3
77609 117349 0.0103440284729 0.010227918624878 0.0102379322052
Output for 7.0.2
77609 117349 0.010889053344727 0.010406017303467 0.010483980178833
Output for 7.0.1
77609 117349 0.018232107162476 0.014419078826904 0.013722896575928
Output for 7.0.0
77609 117349 0.016541957855225 0.014768123626709 0.013850212097168
Output for 5.6.28
77609 117349 0.068798065185547 -0.066701173782349 -0.057665824890137
Output for 5.6.21
77609 117349 0.028182029724121 0.028153896331787 0.030138969421387
Output for 5.6.20
77609 117349 0.032375812530518 0.02940821647644 0.027972936630249
Output for 5.6.19
77609 117349 0.035258054733276 0.030755996704102 0.028311014175415
Output for 5.6.18
77609 117349 0.027090072631836 0.027051210403442 0.027060985565186
Output for 5.6.17
77609 117349 0.030761003494263 0.030228853225708 0.027833938598633
Output for 5.6.16
77609 117349 0.027952909469604 0.028024911880493 0.027858018875122
Output for 5.6.15
77609 117349 0.028983116149902 0.028505086898804 0.027937889099121
Output for 5.6.14
77609 117349 0.033118963241577 0.028223037719727 0.028380870819092
Output for 5.6.13
77609 117349 0.039606094360352 0.034582138061523 0.031005144119263
Output for 5.6.12
77609 117349 0.040262937545776 0.035711050033569 0.031786203384399
Output for 5.6.11
77609 117349 0.040218114852905 0.036228179931641 0.03042197227478
Output for 5.6.10
77609 117349 0.034747838973999 0.030526876449585 0.029009103775024
Output for 5.6.9
77609 117349 0.028731107711792 0.028176069259644 0.027690887451172
Output for 5.6.8
77609 117349 0.036947011947632 0.032058000564575 0.02991795539856
Output for 5.6.7
77609 117349 0.055844068527222 0.042804956436157 0.036157846450806
Output for 5.5.35
77609 117349 0.03653883934021 0.029882907867432 0.028361082077026
Output for 5.5.34
77609 117349 0.036085844039917 0.029829025268555 0.030557870864868
Output for 5.5.33
77609 117349 0.037361145019531 0.031208992004395 0.028053998947144
Output for 5.5.32
77609 117349 0.028151988983154 0.02819299697876 0.027966976165771
Output for 5.5.31
77609 117349 0.030969858169556 0.030179023742676 0.030708074569702
Output for 5.5.30
77609 117349 0.030785083770752 0.02888298034668 0.028621912002563
Output for 5.5.29
77609 117349 0.028187990188599 0.028042078018188 0.028082847595215
Output for 5.5.28
77609 117349 0.027036905288696 0.027107000350952 0.027122974395752
Output for 5.5.27
77609 117349 0.041033029556274 0.034894943237305 0.030955076217651
Output for 5.5.26
77609 117349 0.044228076934814 0.034329175949097 0.030514001846313
Output for 5.5.25
77609 117349 0.042391061782837 0.035139083862305 0.031975030899048
Output for 5.5.24
77609 117349 0.037589073181152 0.032860040664673 0.02956485748291
Output for 5.4.45
77609 117349 0.042968034744263 0.04374098777771 0.040725946426392
Output for 5.4.44
77609 117349 0.04163122177124 0.043581962585449 0.047576189041138
Output for 5.4.43
77609 117349 0.046081066131592 0.052909135818481 0.046671867370605
Output for 5.4.42
77609 117349 0.043664932250977 0.039647102355957 0.03977108001709
Output for 5.4.41
77609 117349 0.044178009033203 0.042088985443115 0.041106939315796
Output for 5.4.40
77609 117349 0.052736043930054 0.096157073974609 0.056812047958374
Output for 5.4.39
77609 117349 0.048426151275635 0.042043924331665 0.041507005691528
Output for 5.4.38
77609 117349 0.041846036911011 0.040241003036499 0.040103912353516
Output for 5.4.37
77609 117349 0.042877912521362 0.040766000747681 0.041425943374634
Output for 5.4.36
77609 117349 0.084254026412964 0.07234001159668 0.041148900985718
Output for 5.4.35
77609 117349 0.039597988128662 0.040235996246338 0.046086072921753
Output for 5.4.34
77609 117349 0.048907041549683 0.0917649269104 0.057031154632568
Output for 5.4.32
77609 117349 0.029988050460815 0.030182838439941 0.029837131500244
Output for 5.4.31
77609 117349 0.034878969192505 0.031534910202026 0.032204866409302
Output for 5.4.30
77609 117349 0.042113065719604 0.038601875305176 0.036111116409302
Output for 5.4.29
77609 117349 0.036360025405884 0.037817001342773 0.031156778335571
Output for 5.4.28
77609 117349 0.056808948516846 0.055130958557129 0.054250001907349
Output for 5.4.27
77609 117349 0.050573110580444 0.054009914398193 0.047806024551392
Output for 5.4.26
77609 117349 0.055669784545898 0.034191846847534 0.04538893699646
Output for 5.4.25
77609 117349 0.051830053329468 0.050787925720215 0.038347005844116
Output for 5.4.24
77609 117349 0.034105062484741 0.042662858963013 0.035325050354004
Output for 5.4.23
77609 117349 0.054115056991577 0.030008792877197 0.030218124389648
Output for 5.4.22
77609 117349 0.03080415725708 0.032696962356567 0.031428098678589
Output for 5.4.21
77609 117349 0.034099817276001 0.033002853393555 0.033631086349487
Output for 5.4.20
77609 117349 0.03357195854187 0.032396078109741 0.032366991043091
Output for 5.4.19
77609 117349 0.031919002532959 0.031400918960571 0.04621696472168
Output for 5.4.18
77609 117349 0.050631999969482 0.049222946166992 0.049461841583252
Output for 5.4.17
77609 117349 0.046655893325806 0.047699213027954 0.04430103302002
Output for 5.4.16
77609 117349 0.030787944793701 0.031243085861206 0.037718057632446
Output for 5.4.15
77609 117349 0.045655965805054 0.048022985458374 0.048197031021118
Output for 5.4.14
77609 117349 0.044718027114868 0.032788991928101 0.036144018173218
Output for 5.4.13
77609 117349 0.032851934432983 0.031774997711182 0.038642168045044
Output for 5.4.12
77609 117349 0.032938957214355 0.035853147506714 0.051881074905396
Output for 5.4.11
77609 117349 0.070466995239258 0.069694995880127 0.051769971847534
Output for 5.4.10
77609 117349 0.037102937698364 0.047376871109009 0.048451900482178
Output for 5.4.9
77609 117349 0.061862945556641 0.065454959869385 0.064167022705078
Output for 5.4.8
77609 117349 0.078537940979004 0.069947004318237 0.0865318775177
Output for 5.4.7
77609 117349 0.06881308555603 0.054708003997803 0.0504469871521
Output for 5.4.6
77609 117349 0.045974016189575 0.043079137802124 0.034465074539185
Output for 5.4.5
77609 117349 0.043988943099976 0.048233985900879 0.045263051986694
Output for 5.4.4
77609 117349 0.067125082015991 0.04783296585083 0.049691915512085
Output for 5.4.3
77609 117349 0.041552066802979 0.038851976394653 0.039644002914429
Output for 5.4.2
77609 117349 0.038514137268066 0.04154896736145 0.03656005859375
Output for 5.4.1
77609 117349 0.075791120529175 0.053137063980103 0.049245119094849
Output for 5.4.0
77609 117349 0.046061992645264 0.037719011306763 0.030585050582886
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/F6ZQP on line 6
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 T_STRING in /in/F6ZQP on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/F6ZQP on line 6
Process exited with code 255.