3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test1() { $s = microtime(true); $var = null; for ($i = 0; $i < 1000000; $i++) { $condition = $var === null; } return microtime(true) - $s; } function test2() { $s = microtime(true); $var = null; for ($i = 0; $i < 1000000; $i++) { $condition = !isset($var); } return microtime(true) - $s; } echo test1() . "\n\n"; echo test2() . "\n\n";
Output for 7.1.0
0.024536848068237 0.024521112442017
Output for 7.0.14
0.024141788482666 0.023918151855469
Output for 7.0.6
0.024600982666016 0.029111862182617
Output for 7.0.5
0.014056205749512 0.015724182128906
Output for 7.0.4
0.021412134170532 0.020739793777466
Output for 7.0.3
0.013291120529175 0.015947103500366
Output for 7.0.2
0.016252040863037 0.017449140548706
Output for 7.0.1
0.018635988235474 0.020349979400635
Output for 7.0.0
0.013597011566162 0.015097141265869
Output for 5.6.28
0.089176893234253 0.082306146621704
Output for 5.6.21
0.04105806350708 0.039505004882812
Output for 5.6.20
0.044687032699585 0.043566226959229
Output for 5.6.19
0.031454086303711 0.035721063613892
Output for 5.6.18
0.030699968338013 0.034317016601562
Output for 5.6.17
0.032959938049316 0.039002895355225
Output for 5.6.16
0.043917894363403 0.038794040679932
Output for 5.6.15
0.06582498550415 0.054273128509521
Output for 5.6.14
0.042167901992798 0.040601968765259
Output for 5.6.13
0.039083003997803 0.037940979003906
Output for 5.6.12
0.030776977539062 0.034963846206665
Output for 5.6.11
0.050477027893066 0.042922973632812
Output for 5.6.10
0.03095817565918 0.03501296043396
Output for 5.6.9
0.04400897026062 0.042363882064819
Output for 5.6.8
0.046751976013184 0.0435631275177
Output for 5.5.35
0.047329902648926 0.039482831954956
Output for 5.5.34
0.035967826843262 0.037025928497314
Output for 5.5.33
0.03892183303833 0.034733057022095
Output for 5.5.32
0.031116008758545 0.033874988555908
Output for 5.5.31
0.040995836257935 0.038753986358643
Output for 5.5.30
0.031270980834961 0.033406972885132
Output for 5.5.29
0.044207096099854 0.039980173110962
Output for 5.5.28
0.031819105148315 0.035550832748413
Output for 5.5.27
0.043872117996216 0.036086082458496
Output for 5.5.26
0.045315980911255 0.042466163635254
Output for 5.5.25
0.042643070220947 0.038098096847534
Output for 5.5.24
0.027194976806641 0.029004096984863
Output for 5.4.45
0.037446022033691 0.036371946334839
Output for 5.4.44
0.030143022537231 0.036992073059082
Output for 5.4.43
0.026232957839966 0.028756856918335
Output for 5.4.42
0.02846097946167 0.042881011962891
Output for 5.4.41
0.032893180847168 0.043483018875122
Output for 5.4.40
0.028764963150024 0.02993106842041
Output for 5.4.39
0.024750947952271 0.030794143676758
Output for 5.4.38
0.049422979354858 0.04908299446106
Output for 5.4.37
0.04712700843811 0.053154945373535
Output for 5.4.36
0.043176889419556 0.051476955413818
Output for 5.4.35
0.043188095092773 0.082924127578735
Output for 5.4.34
0.043268203735352 0.047758102416992
Output for 5.4.32
0.032178163528442 0.036290884017944
Output for 5.4.31
0.031957864761353 0.036075830459595
Output for 5.4.30
0.032855033874512 0.036569118499756
Output for 5.4.29
0.041508913040161 0.037074089050293
Output for 5.4.28
0.068480014801025 0.043015956878662
Output for 5.4.27
0.034106016159058 0.04541015625
Output for 5.4.26
0.068423986434937 0.052266836166382
Output for 5.4.25
0.04454493522644 0.050682067871094
Output for 5.4.24
0.036847114562988 0.050445795059204
Output for 5.4.23
0.041572093963623 0.048666000366211
Output for 5.4.22
0.054075956344604 0.061999082565308
Output for 5.4.21
0.036970853805542 0.043103933334351
Output for 5.4.20
0.040374040603638 0.045070886611938
Output for 5.4.19
0.046133995056152 0.060375928878784
Output for 5.4.18
0.037518978118896 0.060142993927002
Output for 5.4.17
0.044313907623291 0.056112051010132
Output for 5.4.16
0.054614067077637 0.095403909683228
Output for 5.4.15
0.053000211715698 0.056233882904053
Output for 5.4.14
0.035420894622803 0.067245960235596
Output for 5.4.13
0.033273935317993 0.046817064285278
Output for 5.4.12
0.051302909851074 0.061269998550415
Output for 5.4.11
0.069951057434082 0.089792966842651
Output for 5.4.10
0.066563844680786 0.061377048492432
Output for 5.4.9
0.039232015609741 0.040719032287598
Output for 5.4.8
0.038837909698486 0.044027090072632
Output for 5.4.7
0.04900598526001 0.061518907546997
Output for 5.4.6
0.049960851669312 0.053608894348145
Output for 5.4.5
0.047729969024658 0.056586980819702
Output for 5.4.4
0.053354978561401 0.060644865036011
Output for 5.4.3
0.060538053512573 0.067017078399658
Output for 5.4.2
0.05308198928833 0.062639951705933
Output for 5.4.1
0.076952934265137 0.075287103652954
Output for 5.4.0
0.055763006210327 0.06348705291748
Output for 5.3.29
0.064011096954346 0.064491987228394
Output for 5.3.28
0.070538997650146 0.079764127731323
Output for 5.3.27
0.051609039306641 0.053406000137329
Output for 5.3.26
0.076340913772583 0.084801912307739
Output for 5.3.25
0.089109897613525 0.090330839157104
Output for 5.3.24
0.077497959136963 0.081804037094116
Output for 5.3.23
0.07394003868103 0.081681966781616
Output for 5.3.22
0.056934833526611 0.052715063095093
Output for 5.3.21
0.047155857086182 0.05765700340271
Output for 5.3.20
0.046156167984009 0.052772045135498
Output for 5.3.19
0.055736064910889 0.050348043441772
Output for 5.3.18
0.046736001968384 0.051226854324341
Output for 5.3.17
0.047038078308105 0.066928863525391
Output for 5.3.16
0.05834698677063 0.05282998085022
Output for 5.3.15
0.065795183181763 0.063385963439941
Output for 5.3.14
0.048112869262695 0.053046941757202
Output for 5.3.13
0.053770065307617 0.053045034408569
Output for 5.3.12
0.044158935546875 0.050128936767578
Output for 5.3.11
0.055161952972412 0.064631938934326
Output for 5.3.10
0.071513891220093 0.080926179885864
Output for 5.3.9
0.063812971115112 0.053905010223389
Output for 5.3.8
0.060391902923584 0.088352918624878
Output for 5.3.7
0.04802680015564 0.060821056365967
Output for 5.3.6
0.055254936218262 0.054244995117188
Output for 5.3.5
0.068340063095093 0.07190990447998
Output for 5.3.4
0.070355892181396 0.081568002700806
Output for 5.3.3
0.049842119216919 0.076364994049072
Output for 5.3.2
0.050529003143311 0.057524919509888
Output for 5.3.1
0.055113077163696 0.062814950942993
Output for 5.3.0
0.04948902130127 0.056596040725708
Output for 5.2.17
0.071059942245483 0.099936008453369
Output for 5.2.16
0.074602842330933 0.085775852203369
Output for 5.2.15
0.10204100608826 0.12980699539185
Output for 5.2.14
0.10087704658508 0.12719798088074
Output for 5.2.13
0.087090969085693 0.13609004020691
Output for 5.2.12
0.07672905921936 0.082350969314575
Output for 5.2.11
0.068480014801025 0.082318067550659
Output for 5.2.10
0.07088303565979 0.12422800064087
Output for 5.2.9
0.095513820648193 0.13544011116028
Output for 5.2.8
0.1147289276123 0.14942407608032
Output for 5.2.7
0.10971689224243 0.15151977539062
Output for 5.2.6
0.11404490470886 0.097729921340942
Output for 5.2.5
0.10939311981201 0.15925788879395
Output for 5.2.4
0.11385893821716 0.13902592658997
Output for 5.2.3
0.08629584312439 0.13524007797241
Output for 5.2.2
0.096635103225708 0.12698197364807
Output for 5.2.1
0.083866834640503 0.12543416023254
Output for 5.2.0
0.10838985443115 0.1425609588623
Output for 5.1.6
0.1260621547699 0.16677713394165
Output for 5.1.5
0.10013389587402 0.13791680335999
Output for 5.1.4
0.11261606216431 0.18069815635681
Output for 5.1.3
0.13760709762573 0.15302419662476
Output for 5.1.2
0.13421607017517 0.097667217254639
Output for 5.1.1
0.13489294052124 0.14782094955444
Output for 5.1.0
0.16080784797668 0.13050603866577
Output for 5.0.5
0.41268706321716 0.42001295089722
Output for 5.0.4
0.45339298248291 0.33046078681946
Output for 5.0.3
0.38048720359802 0.23663687705994
Output for 5.0.2
0.33095192909241 0.26657605171204
Output for 5.0.1
0.35061311721802 0.29615902900696
Output for 5.0.0
0.43048000335693 0.36260390281677
Output for 4.4.9
0.444064 -0.646887
Output for 4.4.8
0.39476 0.341451
Output for 4.4.7
-0.573188 0.370248
Output for 4.4.6
-0.589544 0.271545
Output for 4.4.5
0.323403 -0.700362
Output for 4.4.4
0.470677 0.339248
Output for 4.4.3
-0.531567 0.379245
Output for 4.4.2
-0.598145 0.339552
Output for 4.4.1
0.391203 -0.737704
Output for 4.4.0
0.271317 0.222332
Output for 4.3.11
-0.651195 0.220093
Output for 4.3.10
0.270301 0.208645
Output for 4.3.9
-0.724152 0.260025
Output for 4.3.8
0.373875 -0.703881
Output for 4.3.7
0.344593 0.309612
Output for 4.3.6
-0.676817 0.328932
Output for 4.3.5
0.2959 -0.709408
Output for 4.3.4
0.433777 -0.615261
Output for 4.3.3
0.448269 0.348455
Output for 4.3.2
-0.611964 0.329884
Output for 4.3.1
0.302265 -0.75777
Output for 4.3.0
0.129857 0.119282