3v4l.org

run code in 300+ PHP versions simultaneously
<?php $textos[] = 'yuqkdp69yHryACb778mvZsbFegIBU#'; $textos[] = 'yuqk#p69yHryACb778mvZsbFigIBUh'; $textos[] = 'yuqksp69yHryACb778m#Zs#Fi#IBUh'; $textos[] = 'yuqksp69yHryACb778mvZsbFigIBUh'; $textos[] = 'yuqksp69yHryACb778mvZsb%igIBUh'; $textos[] = 'yuqksp69yHryACb778mvZsbFigIBU&'; $textos[] = 'yuqksp@9yHryACb778mvZsbFigIBUh'; foreach ($textos as $index => $texto) { for ($i = 0; $i < 10000; $i++) { $inicio = microtime(true); tem_simbolo_na_senha($texto); $fim[$index][] = microtime(true) - $inicio; } echo (int)tem_simbolo_na_senha($texto) . ' - '. $texto . ' demorou ' . array_sum($fim[$index]) / count($fim[$index]); echo PHP_EOL; } function tem_simbolo_na_senha($texto) { $return = 0; $tamanho = mb_strlen($texto, '8bit'); for($i = 0; $i < $tamanho; $i++){ $return |= (int)($texto[$i] === "#" xor $texto[$i] === "@" xor $texto[$i] === "%" xor $texto[$i] === "&"); } return $return !== 0; }
Output for 7.1.7
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 5.6195259094238E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 5.0978899002075E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 5.9850215911865E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 4.2723178863525E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 4.263973236084E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 4.8304796218872E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 4.7928333282471E-6
Output for 7.1.6
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 6.309986114502E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 5.4848670959473E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 4.7646284103394E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 4.7000169754028E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 5.1174640655518E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 4.597020149231E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 4.2664289474487E-6
Output for 7.1.5
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 6.3819885253906E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 6.4213275909424E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 6.2981128692627E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 6.1065435409546E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 5.9833765029907E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 6.1017274856567E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 6.4485788345337E-6
Output for 7.1.4
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 6.7411184310913E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 6.2088251113892E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 6.4590692520142E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 6.2342405319214E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 6.147027015686E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.0521831512451E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 6.0804605484009E-6
Output for 7.1.3
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 6.1062812805176E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 6.188178062439E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 6.0714244842529E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 5.8949947357178E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 6.0820341110229E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 6.1627388000488E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 6.1814308166504E-6
Output for 7.1.2
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 5.9229373931885E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 6.2707424163818E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 6.1364412307739E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 5.9229850769043E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 5.9409618377686E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 5.9301376342773E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 5.8840274810791E-6
Output for 7.1.1
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 7.297158241272E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.530951499939E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 8.2814931869507E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 9.6728086471558E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.2675943374634E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.0252656936646E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.6713562011719E-6
Output for 7.1.0
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 7.6701641082764E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.4138402938843E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 7.407283782959E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.2778940200806E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 8.3337783813477E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.5955152511597E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.4141263961792E-6
Output for 7.0.20
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 8.4841012954712E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 5.5739402770996E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 4.5949697494507E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 4.4254779815674E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 4.4738292694092E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 4.4400691986084E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 4.4326305389404E-6
Output for 7.0.19
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 7.4373960494995E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.3269128799438E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 7.5416326522827E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.3426485061646E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.2698831558228E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.2386980056763E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.295298576355E-6
Output for 7.0.18
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 7.8978776931763E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 1.0756874084473E-5 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 7.6010942459106E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.6372146606445E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.5873851776123E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 8.1779956817627E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.9152822494507E-6
Output for 7.0.17
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 7.9245805740356E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.4213981628418E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 8.0426931381226E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.4598789215088E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.4426889419556E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.492208480835E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.3966264724731E-6
Output for 7.0.16
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 7.5219392776489E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.599663734436E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 7.4108123779297E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.4285507202148E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.3712348937988E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.3596715927124E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.3884725570679E-6
Output for 7.0.15
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 7.6161623001099E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.7146291732788E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 7.8437089920044E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.7095031738281E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.6846837997437E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.6523780822754E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.9574584960937E-6
Output for 7.0.14
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 8.281421661377E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 8.8149785995483E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 8.3411455154419E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 8.1618547439575E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 8.399510383606E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 8.1942319869995E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 8.8258981704712E-6
Output for 7.0.13
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 7.4472188949585E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.5465202331543E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 8.6506843566895E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 8.9248895645142E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.5828552246094E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.4897050857544E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.3642492294312E-6
Output for 7.0.12
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 7.2066068649292E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.3430061340332E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 7.6170206069946E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.1427822113037E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.0327758789062E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 8.0321788787842E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.2043895721436E-6
Output for 7.0.11
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 8.1674575805664E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 8.3327293395996E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 8.6466789245605E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.5350999832153E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 8.5091114044189E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 8.2994222640991E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.8715562820435E-6
Output for 7.0.10
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 8.1618547439575E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.6925039291382E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 8.002495765686E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 8.436131477356E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 8.5863590240479E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 9.4558000564575E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 9.4793081283569E-6
Output for 7.0.9
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 8.5059881210327E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.5220346450806E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 7.7897310256958E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.9004287719727E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.8181028366089E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 1.1375999450684E-5 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 1.1384129524231E-5
Output for 7.0.8
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 1.2893605232239E-5 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 8.2238674163818E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 1.2917041778564E-5 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 1.3633108139038E-5 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 1.2688446044922E-5 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 1.3134098052979E-5 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 8.2724571228027E-6
Output for 7.0.7
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 9.3149423599243E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 1.0559606552124E-5 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 1.8641543388367E-5 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 1.2283825874329E-5 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 1.3657808303833E-5 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 8.8574409484863E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.8433036804199E-6
Output for 7.0.6
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 8.8230848312378E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 8.3627223968506E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 8.9542388916016E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 8.3345174789429E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.9480648040771E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 9.318208694458E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 8.4195375442505E-6
Output for 7.0.5
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 8.8634967803955E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 1.2748169898987E-5 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 8.5436344146729E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 9.2868328094482E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 9.6916437149048E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.5654745101929E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.585620880127E-6
Output for 7.0.4
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 7.4531078338623E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 8.0037832260132E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 7.7712297439575E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 8.2148313522339E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 8.676815032959E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.7956438064575E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 8.0330848693848E-6
Output for 7.0.3
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 8.0791234970093E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.8908681869507E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 7.9695463180542E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 8.8066101074219E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 8.2770586013794E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.9103708267212E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.717752456665E-6
Output for 7.0.2
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 8.0909013748169E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 7.3937177658081E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 7.5853109359741E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.4963569641113E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 8.0812454223633E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.5212955474854E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.723069190979E-6
Output for 7.0.1
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 9.8600149154663E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 9.0738773345947E-6 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 1.0701322555542E-5 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.3291540145874E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.8652381896973E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 8.0157995223999E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.7253341674805E-6
Output for 7.0.0
1 - yuqkdp69yHryACb778mvZsbFegIBU# demorou 9.9915742874146E-6 1 - yuqk#p69yHryACb778mvZsbFigIBUh demorou 1.2312388420105E-5 1 - yuqksp69yHryACb778m#Zs#Fi#IBUh demorou 8.3312034606934E-6 0 - yuqksp69yHryACb778mvZsbFigIBUh demorou 7.3931932449341E-6 1 - yuqksp69yHryACb778mvZsb%igIBUh demorou 7.438063621521E-6 1 - yuqksp69yHryACb778mvZsbFigIBU& demorou 7.454252243042E-6 1 - yuqksp@9yHryACb778mvZsbFigIBUh demorou 7.4461936950684E-6

preferences:
46.89 ms | 456 KiB | 5 Q