3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); for($i = 1; $i <= 10000; $i++) { if(function_exists('mcrypt_encrypt')) { $bool = true; } else { $bool = false; } } $end = microtime(true); echo 'function_exists: '.($end - $start); echo PHP_EOL; $start = microtime(true); for($i = 1; $i <= 10000; $i++) { if(extension_loaded('mcrypt')) { $bool = true; } else { $bool = false; } } $end = microtime(true); echo 'extension_loaded: '.($end - $start);
Output for 8.1.10
function_exists: 0.00025391578674316 extension_loaded: 0.00047707557678223
Output for 8.0.0
function_exists: 0.00026106834411621 extension_loaded: 0.00048112869262695
Output for 7.4.33
function_exists: 0.00034904479980469 extension_loaded: 0.00047492980957031
Output for 7.4.7
function_exists: 0.00074005126953125 extension_loaded: 0.0011608600616455
Output for 7.4.6
function_exists: 0.00049519538879395 extension_loaded: 0.00064420700073242
Output for 7.4.5
function_exists: 0.00050497055053711 extension_loaded: 0.00066089630126953
Output for 7.4.4
function_exists: 0.0010828971862793 extension_loaded: 0.0027899742126465
Output for 7.4.3
function_exists: 0.0018839836120605 extension_loaded: 0.00057792663574219
Output for 7.4.2
function_exists: 0.00080204010009766 extension_loaded: 0.0013761520385742
Output for 7.4.1
function_exists: 0.00052785873413086 extension_loaded: 0.00059413909912109
Output for 7.4.0
function_exists: 0.00048398971557617 extension_loaded: 0.00073599815368652
Output for 7.3.19
function_exists: 0.00079917907714844 extension_loaded: 0.0013740062713623
Output for 7.3.18
function_exists: 0.00046992301940918 extension_loaded: 0.0010848045349121
Output for 7.3.17
function_exists: 0.00051188468933105 extension_loaded: 0.00067806243896484
Output for 7.3.16
function_exists: 0.0011551380157471 extension_loaded: 0.0011727809906006
Output for 7.3.15
function_exists: 0.006105899810791 extension_loaded: 0.001072883605957
Output for 7.3.14
function_exists: 0.00055289268493652 extension_loaded: 0.00065803527832031
Output for 7.3.13
function_exists: 0.00098180770874023 extension_loaded: 0.0015749931335449
Output for 7.3.12
function_exists: 0.0012049674987793 extension_loaded: 0.0012660026550293
Output for 7.3.11
function_exists: 0.00091695785522461 extension_loaded: 0.0007178783416748
Output for 7.3.10
function_exists: 0.00058794021606445 extension_loaded: 0.00073885917663574
Output for 7.3.9
function_exists: 0.00065994262695312 extension_loaded: 0.00087809562683105
Output for 7.3.8
function_exists: 0.00066208839416504 extension_loaded: 0.00093603134155273
Output for 7.3.7
function_exists: 0.00049519538879395 extension_loaded: 0.00073814392089844
Output for 7.3.6
function_exists: 0.00067019462585449 extension_loaded: 0.00078701972961426
Output for 7.3.5
function_exists: 0.00053596496582031 extension_loaded: 0.00078201293945312
Output for 7.3.4
function_exists: 0.00052690505981445 extension_loaded: 0.0018088817596436
Output for 7.3.3
function_exists: 0.00084090232849121 extension_loaded: 0.0009009838104248
Output for 7.3.2
function_exists: 0.00072789192199707 extension_loaded: 0.00088810920715332
Output for 7.3.1
function_exists: 0.00065779685974121 extension_loaded: 0.0011360645294189
Output for 7.3.0
function_exists: 0.00061202049255371 extension_loaded: 0.0010910034179688
Output for 7.2.34
function_exists: 0.00041818618774414 extension_loaded: 0.00054693222045898
Output for 7.2.31
function_exists: 0.01855206489563 extension_loaded: 0.0021240711212158
Output for 7.2.30
function_exists: 0.00068998336791992 extension_loaded: 0.00069785118103027
Output for 7.2.29
function_exists: 0.0013220310211182 extension_loaded: 0.0012509822845459
Output for 7.2.28
function_exists: 0.00069093704223633 extension_loaded: 0.00062704086303711
Output for 7.2.27
function_exists: 0.00065302848815918 extension_loaded: 0.00073909759521484
Output for 7.2.26
function_exists: 0.00093197822570801 extension_loaded: 0.0014898777008057
Output for 7.2.25
function_exists: 0.00095677375793457 extension_loaded: 0.0012979507446289
Output for 7.2.24
function_exists: 0.00066113471984863 extension_loaded: 0.00077319145202637
Output for 7.2.23
function_exists: 0.00059199333190918 extension_loaded: 0.00077509880065918
Output for 7.2.22
function_exists: 0.00068783760070801 extension_loaded: 0.00074100494384766
Output for 7.2.21
function_exists: 0.00083017349243164 extension_loaded: 0.00098395347595215
Output for 7.2.20
function_exists: 0.00072097778320312 extension_loaded: 0.00072383880615234
Output for 7.2.19
function_exists: 0.0015459060668945 extension_loaded: 0.00093579292297363
Output for 7.2.18
function_exists: 0.00077390670776367 extension_loaded: 0.00071883201599121
Output for 7.2.17
function_exists: 0.001183032989502 extension_loaded: 0.0016648769378662
Output for 7.2.16
function_exists: 0.00081801414489746 extension_loaded: 0.0010547637939453
Output for 7.2.15
function_exists: 0.00080609321594238 extension_loaded: 0.00097298622131348
Output for 7.2.14
function_exists: 0.00055408477783203 extension_loaded: 0.00064897537231445
Output for 7.2.13
function_exists: 0.00097894668579102 extension_loaded: 0.0013298988342285
Output for 7.2.12
function_exists: 0.00048589706420898 extension_loaded: 0.00064396858215332
Output for 7.2.11
function_exists: 0.00050592422485352 extension_loaded: 0.00069308280944824
Output for 7.2.10
function_exists: 0.00096511840820312 extension_loaded: 0.0013659000396729
Output for 7.2.9
function_exists: 0.00053286552429199 extension_loaded: 0.0011160373687744
Output for 7.2.8
function_exists: 0.00076699256896973 extension_loaded: 0.00069189071655273
Output for 7.2.7
function_exists: 0.0012810230255127 extension_loaded: 0.0016279220581055
Output for 7.2.6
function_exists: 0.00052309036254883 extension_loaded: 0.00063705444335938
Output for 7.2.5
function_exists: 0.00051712989807129 extension_loaded: 0.00066900253295898
Output for 7.2.4
function_exists: 0.00054001808166504 extension_loaded: 0.00066590309143066
Output for 7.2.3
function_exists: 0.00093197822570801 extension_loaded: 0.0013930797576904
Output for 7.2.2
function_exists: 0.0005190372467041 extension_loaded: 0.00070810317993164
Output for 7.2.1
function_exists: 0.00058579444885254 extension_loaded: 0.00065398216247559
Output for 7.2.0
function_exists: 0.0010280609130859 extension_loaded: 0.0013267993927002
Output for 7.1.33
function_exists: 0.00074100494384766 extension_loaded: 0.0010249614715576
Output for 7.1.32
function_exists: 0.00078582763671875 extension_loaded: 0.0022280216217041
Output for 7.1.31
function_exists: 0.00064992904663086 extension_loaded: 0.00098705291748047
Output for 7.1.30
function_exists: 0.00092577934265137 extension_loaded: 0.014611005783081
Output for 7.1.29
function_exists: 0.00095415115356445 extension_loaded: 0.0011940002441406
Output for 7.1.28
function_exists: 0.0010089874267578 extension_loaded: 0.001309871673584
Output for 7.1.27
function_exists: 0.0011169910430908 extension_loaded: 0.0010039806365967
Output for 7.1.26
function_exists: 0.00088000297546387 extension_loaded: 0.0009770393371582
Output for 7.1.25
function_exists: 0.00068807601928711 extension_loaded: 0.0014560222625732
Output for 7.1.24
function_exists: 0.00059890747070312 extension_loaded: 0.00083708763122559
Output for 7.1.23
function_exists: 0.00060486793518066 extension_loaded: 0.00076913833618164
Output for 7.1.22
function_exists: 0.00056195259094238 extension_loaded: 0.00069689750671387
Output for 7.1.21
function_exists: 0.001162052154541 extension_loaded: 0.0015008449554443
Output for 7.1.20
function_exists: 0.00060296058654785 extension_loaded: 0.00092697143554688
Output for 7.1.19
function_exists: 0.0015811920166016 extension_loaded: 0.0015389919281006
Output for 7.1.18
function_exists: 0.00064206123352051 extension_loaded: 0.0007779598236084
Output for 7.1.17
function_exists: 0.00054407119750977 extension_loaded: 0.0024030208587646
Output for 7.1.16
function_exists: 0.00094985961914062 extension_loaded: 0.0013868808746338
Output for 7.1.15
function_exists: 0.00088810920715332 extension_loaded: 0.00089192390441895
Output for 7.1.14
function_exists: 0.00093698501586914 extension_loaded: 0.00090909004211426
Output for 7.1.13
function_exists: 0.00080108642578125 extension_loaded: 0.00077080726623535
Output for 7.1.12
function_exists: 0.00062417984008789 extension_loaded: 0.0007171630859375
Output for 7.1.11
function_exists: 0.0016729831695557 extension_loaded: 0.0010290145874023
Output for 7.1.10
function_exists: 0.00061202049255371 extension_loaded: 0.0010170936584473
Output for 7.1.9
function_exists: 0.00059199333190918 extension_loaded: 0.00071597099304199
Output for 7.1.8
function_exists: 0.0018990039825439 extension_loaded: 0.0013930797576904
Output for 7.1.7
function_exists: 0.0006859302520752 extension_loaded: 0.0011250972747803
Output for 7.1.6
function_exists: 0.0014309883117676 extension_loaded: 0.0015299320220947
Output for 7.1.5
function_exists: 0.00076818466186523 extension_loaded: 0.00081801414489746
Output for 7.1.4
function_exists: 0.0010309219360352 extension_loaded: 0.0020039081573486
Output for 7.1.3
function_exists: 0.00078797340393066 extension_loaded: 0.00091886520385742
Output for 7.1.2
function_exists: 0.00064206123352051 extension_loaded: 0.0007941722869873
Output for 7.1.1
function_exists: 0.00099897384643555 extension_loaded: 0.0013589859008789
Output for 7.1.0
function_exists: 0.00060701370239258 extension_loaded: 0.00079798698425293
Output for 7.0.33
function_exists: 0.00066709518432617 extension_loaded: 0.0020051002502441
Output for 7.0.32
function_exists: 0.00066781044006348 extension_loaded: 0.00075316429138184
Output for 7.0.31
function_exists: 0.0022239685058594 extension_loaded: 0.0010907649993896
Output for 7.0.30
function_exists: 0.00082015991210938 extension_loaded: 0.00082492828369141
Output for 7.0.29
function_exists: 0.00084686279296875 extension_loaded: 0.00085306167602539
Output for 7.0.28
function_exists: 0.00069880485534668 extension_loaded: 0.00078296661376953
Output for 7.0.27
function_exists: 0.00061798095703125 extension_loaded: 0.00099897384643555
Output for 7.0.26
function_exists: 0.0020411014556885 extension_loaded: 0.0024850368499756
Output for 7.0.25
function_exists: 0.0011448860168457 extension_loaded: 0.0011088848114014
Output for 7.0.24
function_exists: 0.00086092948913574 extension_loaded: 0.00088596343994141
Output for 7.0.23
function_exists: 0.00065898895263672 extension_loaded: 0.0007789134979248
Output for 7.0.22
function_exists: 0.00076103210449219 extension_loaded: 0.002471923828125
Output for 7.0.21
function_exists: 0.00072598457336426 extension_loaded: 0.00079703330993652
Output for 7.0.20
function_exists: 0.0010709762573242 extension_loaded: 0.0024940967559814
Output for 7.0.19
function_exists: 0.0010499954223633 extension_loaded: 0.0016379356384277
Output for 7.0.18
function_exists: 0.00064396858215332 extension_loaded: 0.00075697898864746
Output for 7.0.17
function_exists: 0.00076198577880859 extension_loaded: 0.0012650489807129
Output for 7.0.16
function_exists: 0.00062894821166992 extension_loaded: 0.00094914436340332
Output for 7.0.15
function_exists: 0.00068402290344238 extension_loaded: 0.00084209442138672
Output for 7.0.14
function_exists: 0.00096797943115234 extension_loaded: 0.00072193145751953
Output for 7.0.13
function_exists: 0.00079894065856934 extension_loaded: 0.0011961460113525
Output for 7.0.12
function_exists: 0.00058388710021973 extension_loaded: 0.00079798698425293
Output for 7.0.11
function_exists: 0.0009758472442627 extension_loaded: 0.00075912475585938
Output for 7.0.10
function_exists: 0.0020198822021484 extension_loaded: 0.0016360282897949
Output for 7.0.9
function_exists: 0.00077104568481445 extension_loaded: 0.00094795227050781
Output for 7.0.8
function_exists: 0.0012168884277344 extension_loaded: 0.0012328624725342
Output for 7.0.7
function_exists: 0.00070381164550781 extension_loaded: 0.00087094306945801
Output for 7.0.6
function_exists: 0.0060520172119141 extension_loaded: 0.00094485282897949
Output for 7.0.5
function_exists: 0.00067591667175293 extension_loaded: 0.0012819766998291
Output for 7.0.4
function_exists: 0.00073695182800293 extension_loaded: 0.00078415870666504
Output for 7.0.3
function_exists: 0.00063896179199219 extension_loaded: 0.00076413154602051
Output for 7.0.2
function_exists: 0.00057291984558105 extension_loaded: 0.00087594985961914
Output for 7.0.1
function_exists: 0.00062298774719238 extension_loaded: 0.0009617805480957
Output for 7.0.0
function_exists: 0.00072407722473145 extension_loaded: 0.0013530254364014
Output for 5.6.40
function_exists: 0.0019869804382324 extension_loaded: 0.0017669200897217
Output for 5.6.39
function_exists: 0.0039100646972656 extension_loaded: 0.0018799304962158
Output for 5.6.38
function_exists: 0.0020210742950439 extension_loaded: 0.0019669532775879
Output for 5.6.37
function_exists: 0.0038728713989258 extension_loaded: 0.0022599697113037
Output for 5.6.36
function_exists: 0.0034811496734619 extension_loaded: 0.0026988983154297
Output for 5.6.35
function_exists: 0.0018148422241211 extension_loaded: 0.021886110305786
Output for 5.6.34
function_exists: 0.002147912979126 extension_loaded: 0.0018119812011719
Output for 5.6.33
function_exists: 0.0021770000457764 extension_loaded: 0.0017340183258057
Output for 5.6.32
function_exists: 0.0049991607666016 extension_loaded: 0.0035500526428223
Output for 5.6.31
function_exists: 0.0044639110565186 extension_loaded: 0.0035738945007324
Output for 5.6.30
function_exists: 0.0022358894348145 extension_loaded: 0.0016958713531494
Output for 5.6.29
function_exists: 0.0020480155944824 extension_loaded: 0.0022821426391602
Output for 5.6.28
function_exists: 0.0023059844970703 extension_loaded: 0.0029699802398682
Output for 5.6.27
function_exists: 0.0018808841705322 extension_loaded: 0.0036530494689941
Output for 5.6.26
function_exists: 0.010170936584473 extension_loaded: 0.002877950668335
Output for 5.6.25
function_exists: 0.0022039413452148 extension_loaded: 0.0025579929351807
Output for 5.6.24
function_exists: 0.0021090507507324 extension_loaded: 0.0016920566558838
Output for 5.6.23
function_exists: 0.0023748874664307 extension_loaded: 0.00217604637146
Output for 5.6.22
function_exists: 0.0020871162414551 extension_loaded: 0.0020079612731934
Output for 5.6.21
function_exists: 0.0034778118133545 extension_loaded: 0.0030241012573242
Output for 5.6.20
function_exists: 0.0039839744567871 extension_loaded: 0.0031070709228516
Output for 5.6.19
function_exists: 0.0020461082458496 extension_loaded: 0.0019938945770264
Output for 5.6.18
function_exists: 0.0019629001617432 extension_loaded: 0.003087043762207
Output for 5.6.17
function_exists: 0.0024638175964355 extension_loaded: 0.0021131038665771
Output for 5.6.16
function_exists: 0.0073819160461426 extension_loaded: 0.0031669139862061
Output for 5.6.15
function_exists: 0.0021088123321533 extension_loaded: 0.0019218921661377
Output for 5.6.14
function_exists: 0.0026459693908691 extension_loaded: 0.0018558502197266
Output for 5.6.13
function_exists: 0.0027308464050293 extension_loaded: 0.0019900798797607
Output for 5.6.12
function_exists: 0.0028538703918457 extension_loaded: 0.002011775970459
Output for 5.6.11
function_exists: 0.0040009021759033 extension_loaded: 0.003777027130127
Output for 5.6.10
function_exists: 0.0020060539245605 extension_loaded: 0.0019011497497559
Output for 5.6.9
function_exists: 0.003309965133667 extension_loaded: 0.002971887588501
Output for 5.6.8
function_exists: 0.0024809837341309 extension_loaded: 0.0022811889648438
Output for 5.6.7
function_exists: 0.0021529197692871 extension_loaded: 0.0018301010131836
Output for 5.6.6
function_exists: 0.0020270347595215 extension_loaded: 0.0020439624786377
Output for 5.6.5
function_exists: 0.0018811225891113 extension_loaded: 0.0017189979553223
Output for 5.6.4
function_exists: 0.0020730495452881 extension_loaded: 0.0018131732940674
Output for 5.6.3
function_exists: 0.0020980834960938 extension_loaded: 0.0018751621246338
Output for 5.6.2
function_exists: 0.0056610107421875 extension_loaded: 0.0056002140045166
Output for 5.6.1
function_exists: 0.0039100646972656 extension_loaded: 0.0033290386199951
Output for 5.6.0
function_exists: 0.0038478374481201 extension_loaded: 0.0037350654602051

preferences:
63.84 ms | 658 KiB | 5 Q