3v4l.org

run code in 300+ PHP versions simultaneously
<?php $its = 1e5; $true = true; $fals = false; $stri = 'string'; $t = hrtime(true); for ( $i = 0; $i++ < $its; ) { if ( $true ); if ( $fals ); if ( $stri ); } echo 'plain : ', $old = ( hrtime(true)-$t ) / 1e9, "s\n"; $t = hrtime(true); for ( $i = 0; $i++ < $its; ) { if ( empty( $true ) ); if ( empty( $fals ) ); if ( empty( $stri ) ); } echo 'empty : ', $old = ( hrtime(true)-$t ) / 1e9, "s\n"; $t = hrtime(true); for ( $i = 0; $i++ < $its; ) { if ( ! $true ); if ( ! $fals ); if ( ! $stri ); } echo 'not : ', $old = ( hrtime(true)-$t ) / 1e9, "s\n"; $t = hrtime(true); for ( $i = 0; $i++ < $its; ) { if ( ! empty( $true ) ); if ( ! empty( $fals ) ); if ( ! empty( $stri ) ); } echo 'notemp: ', $old = ( hrtime(true)-$t ) / 1e9, "s\n"; $t = hrtime(true); for ( $i = 0; $i++ < $its; ) { if ( isset( $true ) ); if ( isset( $fals ) ); if ( isset( $stri ) ); } echo 'isset : ', $old = ( hrtime(true)-$t ) / 1e9, "s\n"; $t = hrtime(true); for ( $i = 0; $i++ < $its; ) { if ( ! isset( $true ) ); if ( ! isset( $fals ) ); if ( ! isset( $stri ) ); } echo 'notiss: ', $old = ( hrtime(true)-$t ) / 1e9, "s\n";
Output for 8.3.7
plain : 0.001516663s empty : 0.001832808s not : 0.003142351s notemp: 0.004372771s isset : 0.001692657s notiss: 0.00406001s
Output for 8.3.6
plain : 0.001570117s empty : 0.002578788s not : 0.002964798s notemp: 0.004713014s isset : 0.001825191s notiss: 0.003718204s
Output for 8.3.5
plain : 0.001485788s empty : 0.002648838s not : 0.002924524s notemp: 0.004359915s isset : 0.001894373s notiss: 0.003389373s
Output for 8.3.4
plain : 0.0017952s empty : 0.003350889s not : 0.003311229s notemp: 0.005669555s isset : 0.002708162s notiss: 0.004734911s
Output for 8.3.3
plain : 0.002072628s empty : 0.003160585s not : 0.002795224s notemp: 0.003972316s isset : 0.001672166s notiss: 0.00303114s
Output for 8.3.2
plain : 0.000686173s empty : 0.000880434s not : 0.001307707s notemp: 0.002040409s isset : 0.00090373s notiss: 0.001744625s
Output for 8.3.1
plain : 0.000739414s empty : 0.001114699s not : 0.001248521s notemp: 0.002307035s isset : 0.000897541s notiss: 0.001461252s
Output for 8.3.0
plain : 0.000660195s empty : 0.001114818s not : 0.001231855s notemp: 0.002196337s isset : 0.00098872s notiss: 0.00186649s
Output for 8.2.19
plain : 0.001292217s empty : 0.001975165s not : 0.00229011s notemp: 0.003681846s isset : 0.001435913s notiss: 0.00286114s
Output for 8.2.18
plain : 0.001647513s empty : 0.002035638s not : 0.002698857s notemp: 0.004240381s isset : 0.001478999s notiss: 0.00337067s
Output for 8.2.17
plain : 0.00123732s empty : 0.002224746s not : 0.002505328s notemp: 0.004087076s isset : 0.001692656s notiss: 0.003160043s
Output for 8.2.16
plain : 0.001992999s empty : 0.003150463s not : 0.003102609s notemp: 0.005701s isset : 0.002383578s notiss: 0.003519897s
Output for 8.2.15
plain : 0.000654234s empty : 0.001006965s not : 0.001270942s notemp: 0.002215411s isset : 0.000935628s notiss: 0.001607768s
Output for 8.2.14
plain : 0.000650059s empty : 0.000978294s not : 0.00126763s notemp: 0.002236129s isset : 0.000940327s notiss: 0.001589645s
Output for 8.2.13
plain : 0.000703008s empty : 0.000826104s not : 0.00123534s notemp: 0.001993781s isset : 0.000875999s notiss: 0.001814641s
Output for 8.2.12
plain : 0.000662677s empty : 0.000987196s not : 0.001323141s notemp: 0.002267543s isset : 0.000980006s notiss: 0.001589882s
Output for 8.2.11
plain : 0.000919133s empty : 0.001158103s not : 0.001954883s notemp: 0.002516658s isset : 0.000920385s notiss: 0.003015949s
Output for 8.2.10
plain : 0.000947142s empty : 0.001248619s not : 0.001398572s notemp: 0.002723233s isset : 0.001040116s notiss: 0.001952935s
Output for 8.2.9
plain : 0.000808893s empty : 0.001325126s not : 0.001686075s notemp: 0.002560712s isset : 0.000978332s notiss: 0.002083344s
Output for 8.2.8
plain : 0.000754361s empty : 0.001376794s not : 0.001614844s notemp: 0.00263769s isset : 0.000969817s notiss: 0.002038722s
Output for 8.2.7
plain : 0.001269963s empty : 0.002121348s not : 0.002356328s notemp: 0.003327197s isset : 0.000929391s notiss: 0.001856768s
Output for 8.2.6
plain : 0.001066609s empty : 0.001420517s not : 0.001387293s notemp: 0.00285602s isset : 0.000915896s notiss: 0.001798419s
Output for 8.2.5
plain : 0.000779047s empty : 0.001487963s not : 0.001664286s notemp: 0.002894713s isset : 0.001017688s notiss: 0.002223699s
Output for 8.2.4
plain : 0.000790139s empty : 0.001167499s not : 0.001756158s notemp: 0.002861781s isset : 0.000980136s notiss: 0.002168226s
Output for 8.2.3
plain : 0.000803584s empty : 0.001158212s not : 0.00144365s notemp: 0.002512553s isset : 0.001001317s notiss: 0.001952789s
Output for 8.2.2
plain : 0.000805266s empty : 0.001231539s not : 0.00138513s notemp: 0.002912307s isset : 0.000871091s notiss: 0.002417144s
Output for 8.2.1
plain : 0.000844311s empty : 0.001152181s not : 0.001340725s notemp: 0.002875387s isset : 0.000892451s notiss: 0.002042218s
Output for 8.2.0
plain : 0.000814855s empty : 0.001080225s not : 0.001468096s notemp: 0.002886278s isset : 0.000888694s notiss: 0.002188543s
Output for 8.1.28
plain : 0.001869118s empty : 0.002141186s not : 0.003172002s notemp: 0.004779864s isset : 0.002052664s notiss: 0.004072838s
Output for 8.1.27
plain : 0.0006706s empty : 0.000885937s not : 0.001151977s notemp: 0.002069068s isset : 0.000799105s notiss: 0.001545841s
Output for 8.1.26
plain : 0.000634236s empty : 0.000854007s not : 0.0011817s notemp: 0.001960162s isset : 0.000809189s notiss: 0.001456333s
Output for 8.1.25
plain : 0.000634525s empty : 0.000834576s not : 0.001174087s notemp: 0.001938807s isset : 0.000781866s notiss: 0.001425685s
Output for 8.1.24
plain : 0.000874956s empty : 0.001019024s not : 0.002050134s notemp: 0.002534813s isset : 0.000764961s notiss: 0.002986842s
Output for 8.1.23
plain : 0.00074496s empty : 0.001416335s not : 0.001285578s notemp: 0.002542112s isset : 0.000825564s notiss: 0.001815385s
Output for 8.1.22
plain : 0.000967894s empty : 0.001127324s not : 0.001293667s notemp: 0.002285486s isset : 0.000866272s notiss: 0.001838123s
Output for 8.1.21
plain : 0.000802171s empty : 0.00109876s not : 0.001365932s notemp: 0.002525118s isset : 0.000768569s notiss: 0.001593611s
Output for 8.1.20
plain : 0.000807281s empty : 0.001129729s not : 0.001571383s notemp: 0.002292972s isset : 0.000869388s notiss: 0.001643287s
Output for 8.1.19
plain : 0.000818353s empty : 0.001082479s not : 0.001287716s notemp: 0.002678036s isset : 0.00098721s notiss: 0.001626985s
Output for 8.1.18
plain : 0.000777175s empty : 0.001213647s not : 0.001292114s notemp: 0.002373181s isset : 0.000772014s notiss: 0.00189959s
Output for 8.1.17
plain : 0.000822821s empty : 0.001330366s not : 0.001658385s notemp: 0.002544835s isset : 0.000888643s notiss: 0.001882657s
Output for 8.1.16
plain : 0.000840603s empty : 0.001087088s not : 0.001436618s notemp: 0.00248448s isset : 0.000884988s notiss: 0.001768111s
Output for 8.1.15
plain : 0.000766804s empty : 0.001250937s not : 0.001718497s notemp: 0.002604928s isset : 0.000785861s notiss: 0.001663505s
Output for 8.1.14
plain : 0.000896128s empty : 0.001160366s not : 0.001329806s notemp: 0.002329399s isset : 0.000842878s notiss: 0.001624641s
Output for 8.1.13
plain : 0.000864859s empty : 0.001145828s not : 0.001469729s notemp: 0.00223482s isset : 0.000878375s notiss: 0.001672841s
Output for 8.1.12
plain : 0.000799215s empty : 0.001144706s not : 0.001517148s notemp: 0.002940099s isset : 0.001087049s notiss: 0.001717386s
Output for 8.1.11
plain : 0.000820345s empty : 0.001201173s not : 0.00130568s notemp: 0.002285225s isset : 0.000831136s notiss: 0.00170391s
Output for 8.1.10
plain : 0.000840714s empty : 0.001143264s not : 0.001287926s notemp: 0.002548621s isset : 0.000775441s notiss: 0.001779894s
Output for 8.1.9
plain : 0.000805849s empty : 0.001102417s not : 0.001353781s notemp: 0.002189064s isset : 0.000914193s notiss: 0.001659205s
Output for 8.1.8
plain : 0.000984114s empty : 0.001590596s not : 0.002022581s notemp: 0.002788624s isset : 0.000928099s notiss: 0.001749376s
Output for 8.1.7
plain : 0.000814595s empty : 0.001208646s not : 0.0014595s notemp: 0.002463621s isset : 0.000913712s notiss: 0.001725301s
Output for 8.1.6
plain : 0.000749191s empty : 0.001098831s not : 0.001349512s notemp: 0.00258962s isset : 0.000917449s notiss: 0.001738426s
Output for 8.1.5
plain : 0.000869409s empty : 0.001078902s not : 0.001690746s notemp: 0.002214572s isset : 0.00089157s notiss: 0.001786576s
Output for 8.1.4
plain : 0.000866764s empty : 0.001141481s not : 0.001814307s notemp: 0.002151112s isset : 0.00089179s notiss: 0.001819138s
Output for 8.1.3
plain : 0.00080155s empty : 0.001501378s not : 0.0014864s notemp: 0.002452451s isset : 0.000889035s notiss: 0.001617096s
Output for 8.1.2
plain : 0.00074286s empty : 0.001055509s not : 0.001443459s notemp: 0.002363183s isset : 0.000900086s notiss: 0.001713327s
Output for 8.1.1
plain : 0.000805688s empty : 0.001461052s not : 0.001412131s notemp: 0.002165719s isset : 0.000974547s notiss: 0.001641002s
Output for 8.1.0
plain : 0.000804005s empty : 0.001150708s not : 0.001362527s notemp: 0.002528704s isset : 0.000997548s notiss: 0.001845277s
Output for 8.0.30
plain : 0.00080619s empty : 0.00144936s not : 0.001449471s notemp: 0.002619836s isset : 0.001101615s notiss: 0.002161193s
Output for 8.0.29
plain : 0.000953446s empty : 0.001454099s not : 0.001578563s notemp: 0.002483418s isset : 0.001188299s notiss: 0.002382589s
Output for 8.0.28
plain : 0.002353403s empty : 0.001626284s not : 0.001467986s notemp: 0.002145252s isset : 0.001226881s notiss: 0.002322036s
Output for 8.0.27
plain : 0.002409069s empty : 0.001367156s not : 0.001452857s notemp: 0.002350468s isset : 0.001261076s notiss: 0.002464202s
Output for 8.0.26
plain : 0.001813666s empty : 0.001564268s not : 0.001278809s notemp: 0.003020981s isset : 0.001096106s notiss: 0.002150451s
Output for 8.0.25
plain : 0.001823606s empty : 0.001363349s not : 0.001315508s notemp: 0.002987839s isset : 0.001065998s notiss: 0.001986132s
Output for 8.0.24
plain : 0.002066303s empty : 0.001467565s not : 0.002562579s notemp: 0.004534903s isset : 0.001252671s notiss: 0.004961197s
Output for 8.0.23
plain : 0.001875795s empty : 0.001614452s not : 0.001753293s notemp: 0.002880457s isset : 0.001203577s notiss: 0.002378341s
Output for 8.0.22
plain : 0.001246618s empty : 0.001441697s not : 0.001663694s notemp: 0.002858304s isset : 0.001232092s notiss: 0.002192801s
Output for 8.0.21
plain : 0.001705023s empty : 0.001576431s not : 0.00165099s notemp: 0.002929569s isset : 0.001226671s notiss: 0.002392057s
Output for 8.0.20
plain : 0.001382144s empty : 0.001404277s not : 0.001536424s notemp: 0.002148227s isset : 0.001168964s notiss: 0.001960023s
Output for 8.0.19
plain : 0.001625122s empty : 0.001818546s not : 0.001622066s notemp: 0.002854649s isset : 0.001148995s notiss: 0.002032088s
Output for 8.0.18
plain : 0.001944874s empty : 0.001398464s not : 0.001813977s notemp: 0.00272284s isset : 0.001242099s notiss: 0.002293501s
Output for 8.0.17
plain : 0.001919557s empty : 0.001503823s not : 0.001574746s notemp: 0.002938757s isset : 0.001133446s notiss: 0.002474943s
Output for 8.0.16
plain : 0.001595957s empty : 0.001355493s not : 0.001704131s notemp: 0.003070495s isset : 0.001159674s notiss: 0.00206466s
Output for 8.0.15
plain : 0.001408044s empty : 0.001500346s not : 0.001621405s notemp: 0.002577265s isset : 0.001097368s notiss: 0.002007242s
Output for 8.0.14
plain : 0.001792708s empty : 0.001121774s not : 0.001862269s notemp: 0.002255299s isset : 0.001046381s notiss: 0.001840668s
Output for 8.0.13
plain : 0.001320448s empty : 0.001259804s not : 0.00156084s notemp: 0.002613394s isset : 0.00114134s notiss: 0.001765566s
Output for 8.0.12
plain : 0.001524251s empty : 0.001093269s not : 0.001624451s notemp: 0.002446611s isset : 0.000911276s notiss: 0.001952128s
Output for 8.0.11
plain : 0.001503152s empty : 0.001100203s not : 0.001727906s notemp: 0.002410011s isset : 0.000908261s notiss: 0.001765566s
Output for 8.0.10
plain : 0.001431357s empty : 0.00132688s not : 0.001889059s notemp: 0.002641256s isset : 0.000939339s notiss: 0.001875012s
Output for 8.0.9
plain : 0.001765847s empty : 0.001542786s not : 0.001562123s notemp: 0.002645645s isset : 0.001142232s notiss: 0.002106318s
Output for 8.0.8
plain : 0.001201444s empty : 0.001584064s not : 0.001657173s notemp: 0.002987218s isset : 0.001311941s notiss: 0.002258224s
Output for 8.0.7
plain : 0.001517869s empty : 0.001704893s not : 0.001843043s notemp: 0.002869957s isset : 0.001080636s notiss: 0.002136004s
Output for 8.0.6
plain : 0.000846414s empty : 0.001425746s not : 0.002082593s notemp: 0.002825202s isset : 0.001196574s notiss: 0.002164358s
Output for 8.0.5
plain : 0.00124218s empty : 0.001434282s not : 0.00188925s notemp: 0.00280764s isset : 0.001101706s notiss: 0.002316665s
Output for 8.0.3
plain : 0.000929501s empty : 0.001741521s not : 0.001907413s notemp: 0.002676122s isset : 0.001170034s notiss: 0.002138629s
Output for 8.0.2
plain : 0.000942806s empty : 0.001556342s not : 0.001723057s notemp: 0.002997207s isset : 0.001149045s notiss: 0.002404711s
Output for 8.0.1
plain : 0.001050529s empty : 0.001278809s not : 0.001562995s notemp: 0.002703423s isset : 0.002568068s notiss: 0.001943502s

preferences:
78.44 ms | 402 KiB | 91 Q