3v4l.org

run code in 300+ PHP versions simultaneously
<?php function str_contains_not( $show = '' ) { $url = true; if ( ! str_contains( $show, 'url' ) && ! str_contains( $show, 'directory' ) && ! str_contains( $show, 'home' ) ) { $url = false; } if ( $url ) {} } function str_contains_or( $show = '' ) { if ( str_contains( $show, 'url' ) || str_contains( $show, 'directory' ) || str_contains( $show, 'home' ) ) {} } $its = 1e3; $t = hrtime(true); for ( $i=0;$i++<$its;) $z = str_contains_not( 'blogname' ); echo (hrtime(true)-$t)/1e9,"s\n"; $t = hrtime(true); for ( $i=0;$i++<$its;) $z = str_contains_or( 'blogname' ); echo (hrtime(true)-$t)/1e9,"s\n"; echo "\n=== Warmed up ===\n\n"; $its = 1e5; $t = hrtime(true); for ( $i=0;$i++<$its;) $z = str_contains_not( 'blogname' ); echo 'str_contains_not: ', $a=(hrtime(true)-$t)/1e9,"s\n"; $t = hrtime(true); for ( $i=0;$i++<$its;) $z = str_contains_or( 'blogname' ); echo 'str_contains_or : ', $b=(hrtime(true)-$t)/1e9,"s\n"; echo 'str_contains_or is ', number_format((($a-$b)/$a) * 100, 2 ), "% faster than str_contains_not\n";
Output for 8.4.2
0.000142109s 0.00016737s === Warmed up === str_contains_not: 0.012903382s str_contains_or : 0.010683815s str_contains_or is 17.20% faster than str_contains_not
Output for 8.4.1
6.088E-5s 4.712E-5s === Warmed up === str_contains_not: 0.005867573s str_contains_or : 0.004800063s str_contains_or is 18.19% faster than str_contains_not
Output for 8.3.15
0.000157819s 0.000169149s === Warmed up === str_contains_not: 0.01534164s str_contains_or : 0.0111787s str_contains_or is 27.13% faster than str_contains_not
Output for 8.3.14
7.0539E-5s 5.487E-5s === Warmed up === str_contains_not: 0.006586407s str_contains_or : 0.005826617s str_contains_or is 11.54% faster than str_contains_not
Output for 8.3.13
8.2134E-5s 6.7642E-5s === Warmed up === str_contains_not: 0.006381154s str_contains_or : 0.005271816s str_contains_or is 17.38% faster than str_contains_not
Output for 8.3.12
7.256E-5s 5.4331E-5s === Warmed up === str_contains_not: 0.006788887s str_contains_or : 0.005814739s str_contains_or is 14.35% faster than str_contains_not
Output for 8.3.11
6.8963E-5s 5.4413E-5s === Warmed up === str_contains_not: 0.006397961s str_contains_or : 0.005232854s str_contains_or is 18.21% faster than str_contains_not
Output for 8.3.10
7.0686E-5s 7.0997E-5s === Warmed up === str_contains_not: 0.007141798s str_contains_or : 0.00657761s str_contains_or is 7.90% faster than str_contains_not
Output for 8.3.9
6.8142E-5s 5.3431E-5s === Warmed up === str_contains_not: 0.006260844s str_contains_or : 0.005401311s str_contains_or is 13.73% faster than str_contains_not
Output for 8.3.8
8.8016E-5s 8.502E-5s === Warmed up === str_contains_not: 0.008195147s str_contains_or : 0.006813201s str_contains_or is 16.86% faster than str_contains_not
Output for 8.3.7
0.00019152s 0.000155765s === Warmed up === str_contains_not: 0.019174098s str_contains_or : 0.010314686s str_contains_or is 46.21% faster than str_contains_not
Output for 8.3.6
0.000123507s 9.6626E-5s === Warmed up === str_contains_not: 0.011582709s str_contains_or : 0.009640484s str_contains_or is 16.77% faster than str_contains_not
Output for 8.3.5
0.000129425s 0.000123576s === Warmed up === str_contains_not: 0.0117816s str_contains_or : 0.009749117s str_contains_or is 17.25% faster than str_contains_not
Output for 8.3.4
0.000206932s 0.00015965s === Warmed up === str_contains_not: 0.014245754s str_contains_or : 0.01029305s str_contains_or is 27.75% faster than str_contains_not
Output for 8.3.3
0.000130716s 0.000121633s === Warmed up === str_contains_not: 0.012425756s str_contains_or : 0.009785884s str_contains_or is 21.25% faster than str_contains_not
Output for 8.3.2
6.7512E-5s 5.4862E-5s === Warmed up === str_contains_not: 0.006597186s str_contains_or : 0.005483031s str_contains_or is 16.89% faster than str_contains_not
Output for 8.3.1
6.5418E-5s 6.6541E-5s === Warmed up === str_contains_not: 0.006588315s str_contains_or : 0.005677503s str_contains_or is 13.82% faster than str_contains_not
Output for 8.3.0
6.3636E-5s 5.4011E-5s === Warmed up === str_contains_not: 0.006327778s str_contains_or : 0.005563689s str_contains_or is 12.08% faster than str_contains_not
Output for 8.2.27
0.000153519s 0.000226648s === Warmed up === str_contains_not: 0.015371713s str_contains_or : 0.010498611s str_contains_or is 31.70% faster than str_contains_not
Output for 8.2.26
6.3969E-5s 6.2629E-5s === Warmed up === str_contains_not: 0.006324822s str_contains_or : 0.005378342s str_contains_or is 14.96% faster than str_contains_not
Output for 8.2.25
9.2579E-5s 7.1307E-5s === Warmed up === str_contains_not: 0.008776845s str_contains_or : 0.006337482s str_contains_or is 27.79% faster than str_contains_not
Output for 8.2.24
6.8963E-5s 5.6324E-5s === Warmed up === str_contains_not: 0.006687333s str_contains_or : 0.005427032s str_contains_or is 18.85% faster than str_contains_not
Output for 8.2.23
6.6521E-5s 5.376E-5s === Warmed up === str_contains_not: 0.006392714s str_contains_or : 0.005464223s str_contains_or is 14.52% faster than str_contains_not
Output for 8.2.22
6.613E-5s 6.6901E-5s === Warmed up === str_contains_not: 0.006286452s str_contains_or : 0.005347878s str_contains_or is 14.93% faster than str_contains_not
Output for 8.2.21
6.5719E-5s 6.9664E-5s === Warmed up === str_contains_not: 0.006630634s str_contains_or : 0.005373011s str_contains_or is 18.97% faster than str_contains_not
Output for 8.2.20
8.7354E-5s 7.1013E-5s === Warmed up === str_contains_not: 0.008490491s str_contains_or : 0.006853387s str_contains_or is 19.28% faster than str_contains_not
Output for 8.2.19
0.000182914s 0.000149014s === Warmed up === str_contains_not: 0.01972102s str_contains_or : 0.013453791s str_contains_or is 31.78% faster than str_contains_not
Output for 8.2.18
0.000197878s 0.000153251s === Warmed up === str_contains_not: 0.01550415s str_contains_or : 0.01067387s str_contains_or is 31.15% faster than str_contains_not
Output for 8.2.17
0.000129806s 0.000102474s === Warmed up === str_contains_not: 0.012068982s str_contains_or : 0.010158721s str_contains_or is 15.83% faster than str_contains_not
Output for 8.2.16
0.000121762s 0.000103726s === Warmed up === str_contains_not: 0.01261437s str_contains_or : 0.010443513s str_contains_or is 17.21% faster than str_contains_not
Output for 8.2.15
6.5819E-5s 6.5879E-5s === Warmed up === str_contains_not: 0.006506703s str_contains_or : 0.005395074s str_contains_or is 17.08% faster than str_contains_not
Output for 8.2.14
6.9584E-5s 5.324E-5s === Warmed up === str_contains_not: 0.006401712s str_contains_or : 0.005585312s str_contains_or is 12.75% faster than str_contains_not
Output for 8.2.13
6.4287E-5s 5.3471E-5s === Warmed up === str_contains_not: 0.006414819s str_contains_or : 0.005397397s str_contains_or is 15.86% faster than str_contains_not
Output for 8.2.12
6.3497E-5s 6.2424E-5s === Warmed up === str_contains_not: 0.006234915s str_contains_or : 0.005385555s str_contains_or is 13.62% faster than str_contains_not
Output for 8.2.11
0.000114813s 9.4121E-5s === Warmed up === str_contains_not: 0.011265626s str_contains_or : 0.009418998s str_contains_or is 16.39% faster than str_contains_not
Output for 8.2.10
0.000100579s 8.9789E-5s === Warmed up === str_contains_not: 0.009239515s str_contains_or : 0.007625258s str_contains_or is 17.47% faster than str_contains_not
Output for 8.2.9
9.8755E-5s 8.2034E-5s === Warmed up === str_contains_not: 0.008789248s str_contains_or : 0.007189879s str_contains_or is 18.20% faster than str_contains_not
Output for 8.2.8
9.2705E-5s 6.9832E-5s === Warmed up === str_contains_not: 0.008727822s str_contains_or : 0.007064412s str_contains_or is 19.06% faster than str_contains_not
Output for 8.2.7
0.000105669s 8.7696E-5s === Warmed up === str_contains_not: 0.009335375s str_contains_or : 0.007425071s str_contains_or is 20.46% faster than str_contains_not
Output for 8.2.6
0.00010062s 7.4229E-5s === Warmed up === str_contains_not: 0.009381292s str_contains_or : 0.007495164s str_contains_or is 20.11% faster than str_contains_not
Output for 8.2.5
0.000102532s 7.1744E-5s === Warmed up === str_contains_not: 0.00904554s str_contains_or : 0.006976978s str_contains_or is 22.87% faster than str_contains_not
Output for 8.2.4
0.00012191s 8.5772E-5s === Warmed up === str_contains_not: 0.008766244s str_contains_or : 0.007353487s str_contains_or is 16.12% faster than str_contains_not
Output for 8.2.3
9.5088E-5s 7.2737E-5s === Warmed up === str_contains_not: 0.008671287s str_contains_or : 0.007198084s str_contains_or is 16.99% faster than str_contains_not
Output for 8.2.2
9.5921E-5s 9.4147E-5s === Warmed up === str_contains_not: 0.009345123s str_contains_or : 0.008363688s str_contains_or is 10.50% faster than str_contains_not
Output for 8.2.1
0.000106521s 6.9842E-5s === Warmed up === str_contains_not: 0.009365641s str_contains_or : 0.007176003s str_contains_or is 23.38% faster than str_contains_not
Output for 8.2.0
0.000105419s 8.8275E-5s === Warmed up === str_contains_not: 0.008888455s str_contains_or : 0.006888893s str_contains_or is 22.50% faster than str_contains_not
Output for 8.1.31
0.000159339s 0.000163577s === Warmed up === str_contains_not: 0.0157417s str_contains_or : 0.013846512s str_contains_or is 12.04% faster than str_contains_not
Output for 8.1.30
0.000131448s 0.000132319s === Warmed up === str_contains_not: 0.010250283s str_contains_or : 0.005864516s str_contains_or is 42.79% faster than str_contains_not
Output for 8.1.29
8.0281E-5s 8.7615E-5s === Warmed up === str_contains_not: 0.008073781s str_contains_or : 0.006789687s str_contains_or is 15.90% faster than str_contains_not
Output for 8.1.28
0.00011971s 0.000122174s === Warmed up === str_contains_not: 0.012261706s str_contains_or : 0.010401975s str_contains_or is 15.17% faster than str_contains_not
Output for 8.1.27
6.8773E-5s 5.7858E-5s === Warmed up === str_contains_not: 0.006805831s str_contains_or : 0.005823663s str_contains_or is 14.43% faster than str_contains_not
Output for 8.1.26
6.9093E-5s 5.7957E-5s === Warmed up === str_contains_not: 0.006605374s str_contains_or : 0.00572015s str_contains_or is 13.40% faster than str_contains_not
Output for 8.1.25
6.6981E-5s 7.353E-5s === Warmed up === str_contains_not: 0.006553078s str_contains_or : 0.005607013s str_contains_or is 14.44% faster than str_contains_not
Output for 8.1.24
0.000226581s 0.000196155s === Warmed up === str_contains_not: 0.01750291s str_contains_or : 0.009213251s str_contains_or is 47.36% faster than str_contains_not
Output for 8.1.23
0.000118283s 7.2406E-5s === Warmed up === str_contains_not: 0.00883277s str_contains_or : 0.007339661s str_contains_or is 16.90% faster than str_contains_not
Output for 8.1.22
0.000105539s 7.429E-5s === Warmed up === str_contains_not: 0.009033838s str_contains_or : 0.007399022s str_contains_or is 18.10% faster than str_contains_not
Output for 8.1.21
0.000102824s 9.529E-5s === Warmed up === str_contains_not: 0.009304677s str_contains_or : 0.007573189s str_contains_or is 18.61% faster than str_contains_not
Output for 8.1.20
9.8815E-5s 8.8427E-5s === Warmed up === str_contains_not: 0.008961511s str_contains_or : 0.007268035s str_contains_or is 18.90% faster than str_contains_not
Output for 8.1.19
9.7594E-5s 7.0723E-5s === Warmed up === str_contains_not: 0.009052113s str_contains_or : 0.007214935s str_contains_or is 20.30% faster than str_contains_not
Output for 8.1.18
0.0001006s 7.3608E-5s === Warmed up === str_contains_not: 0.008932588s str_contains_or : 0.007430923s str_contains_or is 16.81% faster than str_contains_not
Output for 8.1.17
0.000106871s 7.7196E-5s === Warmed up === str_contains_not: 0.01023076s str_contains_or : 0.007745344s str_contains_or is 24.29% faster than str_contains_not
Output for 8.1.16
0.000102694s 8.6363E-5s === Warmed up === str_contains_not: 0.009106625s str_contains_or : 0.007018266s str_contains_or is 22.93% faster than str_contains_not
Output for 8.1.15
9.1393E-5s 8.7846E-5s === Warmed up === str_contains_not: 0.008591085s str_contains_or : 0.007508098s str_contains_or is 12.61% faster than str_contains_not
Output for 8.1.14
0.000101221s 7.2856E-5s === Warmed up === str_contains_not: 0.009262038s str_contains_or : 0.007428327s str_contains_or is 19.80% faster than str_contains_not
Output for 8.1.13
0.000116449s 8.6823E-5s === Warmed up === str_contains_not: 0.00885424s str_contains_or : 0.007309745s str_contains_or is 17.44% faster than str_contains_not
Output for 8.1.12
0.000107993s 7.6253E-5s === Warmed up === str_contains_not: 0.009450783s str_contains_or : 0.007531671s str_contains_or is 20.31% faster than str_contains_not
Output for 8.1.11
0.000118072s 7.4501E-5s === Warmed up === str_contains_not: 0.009445883s str_contains_or : 0.007576096s str_contains_or is 19.79% faster than str_contains_not
Output for 8.1.10
0.000107161s 7.1273E-5s === Warmed up === str_contains_not: 0.009214649s str_contains_or : 0.007289797s str_contains_or is 20.89% faster than str_contains_not
Output for 8.1.9
0.000101842s 7.9238E-5s === Warmed up === str_contains_not: 0.009252089s str_contains_or : 0.00810996s str_contains_or is 12.34% faster than str_contains_not
Output for 8.1.8
9.591E-5s 7.2608E-5s === Warmed up === str_contains_not: 0.008857305s str_contains_or : 0.007163559s str_contains_or is 19.12% faster than str_contains_not
Output for 8.1.7
0.000115277s 9.6712E-5s === Warmed up === str_contains_not: 0.009254002s str_contains_or : 0.007515953s str_contains_or is 18.78% faster than str_contains_not
Output for 8.1.6
9.7654E-5s 9.046E-5s === Warmed up === str_contains_not: 0.00896602s str_contains_or : 0.007519178s str_contains_or is 16.14% faster than str_contains_not
Output for 8.1.5
8.7665E-5s 6.8708E-5s === Warmed up === str_contains_not: 0.008350001s str_contains_or : 0.00700923s str_contains_or is 16.06% faster than str_contains_not
Output for 8.1.4
8.4279E-5s 6.7686E-5s === Warmed up === str_contains_not: 0.008344932s str_contains_or : 0.006805515s str_contains_or is 18.45% faster than str_contains_not
Output for 8.1.3
0.000106712s 7.436E-5s === Warmed up === str_contains_not: 0.009249744s str_contains_or : 0.007466779s str_contains_or is 19.28% faster than str_contains_not
Output for 8.1.2
0.000102053s 9.019E-5s === Warmed up === str_contains_not: 0.009321369s str_contains_or : 0.007555888s str_contains_or is 18.94% faster than str_contains_not
Output for 8.1.1
9.5089E-5s 9.2384E-5s === Warmed up === str_contains_not: 0.009142383s str_contains_or : 0.007213714s str_contains_or is 21.10% faster than str_contains_not
Output for 8.1.0
9.4278E-5s 8.1063E-5s === Warmed up === str_contains_not: 0.009174121s str_contains_or : 0.007683217s str_contains_or is 16.25% faster than str_contains_not
Output for 8.0.30
9.2724E-5s 7.8217E-5s === Warmed up === str_contains_not: 0.009127694s str_contains_or : 0.006310815s str_contains_or is 30.86% faster than str_contains_not
Output for 8.0.29
0.001378174s 9.3346E-5s === Warmed up === str_contains_not: 0.009511877s str_contains_or : 0.007498269s str_contains_or is 21.17% faster than str_contains_not
Output for 8.0.28
0.001544166s 9.004E-5s === Warmed up === str_contains_not: 0.010207335s str_contains_or : 0.007820134s str_contains_or is 23.39% faster than str_contains_not
Output for 8.0.27
0.001379585s 0.000116199s === Warmed up === str_contains_not: 0.00993809s str_contains_or : 0.007511264s str_contains_or is 24.42% faster than str_contains_not
Output for 8.0.26
0.001320094s 7.6163E-5s === Warmed up === str_contains_not: 0.010580817s str_contains_or : 0.007538283s str_contains_or is 28.76% faster than str_contains_not
Output for 8.0.25
0.001382312s 9.3305E-5s === Warmed up === str_contains_not: 0.009205812s str_contains_or : 0.007059404s str_contains_or is 23.32% faster than str_contains_not
Output for 8.0.24
0.0013444s 6.941E-5s === Warmed up === str_contains_not: 0.009174684s str_contains_or : 0.006814051s str_contains_or is 25.73% faster than str_contains_not
Output for 8.0.23
0.000146085s 0.000100809s === Warmed up === str_contains_not: 0.010162292s str_contains_or : 0.007480775s str_contains_or is 26.39% faster than str_contains_not
Output for 8.0.22
9.7353E-5s 9.9977E-5s === Warmed up === str_contains_not: 0.00967771s str_contains_or : 0.007707412s str_contains_or is 20.36% faster than str_contains_not
Output for 8.0.21
0.000122389s 9.3715E-5s === Warmed up === str_contains_not: 0.009572642s str_contains_or : 0.007307841s str_contains_or is 23.66% faster than str_contains_not
Output for 8.0.20
9.3456E-5s 9.1872E-5s === Warmed up === str_contains_not: 0.009923843s str_contains_or : 0.006695678s str_contains_or is 32.53% faster than str_contains_not
Output for 8.0.19
0.000131277s 9.3696E-5s === Warmed up === str_contains_not: 0.010003914s str_contains_or : 0.006794945s str_contains_or is 32.08% faster than str_contains_not
Output for 8.0.18
0.000108764s 7.9049E-5s === Warmed up === str_contains_not: 0.009914555s str_contains_or : 0.007384104s str_contains_or is 25.52% faster than str_contains_not
Output for 8.0.17
0.000125076s 9.3756E-5s === Warmed up === str_contains_not: 0.00963566s str_contains_or : 0.007489734s str_contains_or is 22.27% faster than str_contains_not
Output for 8.0.16
0.000107713s 8.3858E-5s === Warmed up === str_contains_not: 0.008884187s str_contains_or : 0.006790708s str_contains_or is 23.56% faster than str_contains_not
Output for 8.0.15
8.1823E-5s 7.435E-5s === Warmed up === str_contains_not: 0.007513809s str_contains_or : 0.006198453s str_contains_or is 17.51% faster than str_contains_not
Output for 8.0.14
0.000125366s 9.7163E-5s === Warmed up === str_contains_not: 0.009348501s str_contains_or : 0.007626389s str_contains_or is 18.42% faster than str_contains_not
Output for 8.0.13
8.6843E-5s 0.00011759s === Warmed up === str_contains_not: 0.007821628s str_contains_or : 0.006253987s str_contains_or is 20.04% faster than str_contains_not
Output for 8.0.12
0.000125907s 9.7153E-5s === Warmed up === str_contains_not: 0.00926327s str_contains_or : 0.00683461s str_contains_or is 26.22% faster than str_contains_not
Output for 8.0.11
0.000128021s 9.4899E-5s === Warmed up === str_contains_not: 0.009895069s str_contains_or : 0.007348025s str_contains_or is 25.74% faster than str_contains_not
Output for 8.0.10
9.5569E-5s 8.8105E-5s === Warmed up === str_contains_not: 0.00892333s str_contains_or : 0.00733948s str_contains_or is 17.75% faster than str_contains_not
Output for 8.0.9
9.3656E-5s 0.000149522s === Warmed up === str_contains_not: 0.009260745s str_contains_or : 0.010099083s str_contains_or is -9.05% faster than str_contains_not
Output for 8.0.8
0.000102873s 9.9917E-5s === Warmed up === str_contains_not: 0.009527277s str_contains_or : 0.008436755s str_contains_or is 11.45% faster than str_contains_not
Output for 8.0.7
0.000134242s 0.000118072s === Warmed up === str_contains_not: 0.009967785s str_contains_or : 0.007064462s str_contains_or is 29.13% faster than str_contains_not
Output for 8.0.6
8.8245E-5s 8.8667E-5s === Warmed up === str_contains_not: 0.008357455s str_contains_or : 0.007286861s str_contains_or is 12.81% faster than str_contains_not
Output for 8.0.5
8.7314E-5s 9.9557E-5s === Warmed up === str_contains_not: 0.008050738s str_contains_or : 0.006546048s str_contains_or is 18.69% faster than str_contains_not
Output for 8.0.3
9.0481E-5s 9.3124E-5s === Warmed up === str_contains_not: 0.008687196s str_contains_or : 0.006867311s str_contains_or is 20.95% faster than str_contains_not
Output for 8.0.2
9.3106E-5s 6.8408E-5s === Warmed up === str_contains_not: 0.009173771s str_contains_or : 0.007621219s str_contains_or is 16.92% faster than str_contains_not
Output for 8.0.1
0.000114346s 0.000101411s === Warmed up === str_contains_not: 0.010192718s str_contains_or : 0.00776508s str_contains_or is 23.82% faster than str_contains_not

preferences:
76.02 ms | 567 KiB | 5 Q