3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = null; $i = 1000000; $t = microtime(true); while ($i--) { $y = is_null($x); } echo microtime(true) - $t, PHP_EOL; $i = 1000000; $t = microtime(true); while ($i--) { $y = null === $x; } echo microtime(true) - $t, PHP_EOL;
Output for 7.1.0
0.016754150390625 0.015835046768188
Output for 7.0.14
0.019366025924683 0.018903970718384
Output for 7.0.7
0.017023086547852 0.016295194625854
Output for 7.0.6
0.0173180103302 0.014103889465332
Output for 7.0.5
0.015702962875366 0.012982130050659
Output for 7.0.4
0.019122123718262 0.018599987030029
Output for 7.0.3
0.014705896377563 0.014441967010498
Output for 7.0.2
0.018279075622559 0.01501202583313
Output for 7.0.1
0.019105911254883 0.01833701133728
Output for 7.0.0
0.01734185218811 0.016827821731567
Output for hhvm-3.12.0
0.025732040405273 0.025137901306152
Output for hhvm-3.10.0
0.032989978790283 0.031164884567261
Output for 5.6.28
0.10439395904541 0.027490139007568
Output for 5.6.22
0.094151020050049 0.026809930801392
Output for 5.6.21
0.090332984924316 0.025840044021606
Output for 5.6.20
0.095223903656006 0.02684497833252
Output for 5.6.19
0.097674131393433 0.027228832244873
Output for 5.6.18
0.10378003120422 0.028454065322876
Output for 5.6.17
0.073579788208008 0.023561000823975
Output for 5.6.16
0.096215963363647 0.027577877044678
Output for 5.6.15
0.086226940155029 0.025253772735596
Output for 5.6.14
0.082007169723511 0.024088144302368
Output for 5.6.13
0.072698831558228 0.023253917694092
Output for 5.6.12
0.076107978820801 0.02324390411377
Output for 5.6.11
0.097046136856079 0.028158903121948
Output for 5.6.10
0.092661142349243 0.026992082595825
Output for 5.6.9
0.069550037384033 0.023149967193604
Output for 5.6.8
0.068972826004028 0.02330207824707
Output for 5.6.7
0.086595773696899 0.024904012680054
Output for 5.6.6
0.099506139755249 0.028635025024414
Output for 5.6.5
0.11801695823669 0.023335933685303
Output for 5.6.4
0.0971519947052 0.025542974472046
Output for 5.6.3
0.095915079116821 0.027723073959351
Output for 5.6.2
0.098526954650879 0.028530836105347
Output for 5.6.1
0.098845958709717 0.028465986251831
Output for 5.6.0
0.09936785697937 0.027583122253418
Output for 5.5.36
0.099697828292847 0.025890111923218
Output for 5.5.35
0.095657825469971 0.024178028106689
Output for 5.5.34
0.089951038360596 0.024198055267334
Output for 5.5.33
0.10362911224365 0.025763988494873
Output for 5.5.32
0.1013400554657 0.027390003204346
Output for 5.5.31
0.098489999771118 0.026299953460693
Output for 5.5.30
0.086701154708862 0.023083925247192
Output for 5.5.29
0.087702989578247 0.023366928100586
Output for 5.5.28
0.10132384300232 0.027115106582642
Output for 5.5.27
0.10263705253601 0.02671480178833
Output for 5.5.26
0.081261873245239 0.023588895797729
Output for 5.5.25
0.10575604438782 0.026927947998047
Output for 5.5.24
0.088993072509766 0.023253917694092
Output for 5.5.23
0.091954946517944 0.023277997970581
Output for 5.5.22
0.090086936950684 0.024923801422119
Output for 5.5.21
0.092789888381958 0.024747848510742
Output for 5.5.20
0.082313060760498 0.023293018341064
Output for 5.5.19
0.096843957901001 0.026461124420166
Output for 5.5.18
0.08710789680481 0.023102998733521
Output for 5.5.16
0.092211008071899 0.024536848068237
Output for 5.5.15
0.073264122009277 0.023228883743286
Output for 5.5.14
0.085383892059326 0.023658990859985
Output for 5.5.13
0.11466693878174 0.029701948165894
Output for 5.5.12
0.082721948623657 0.023359060287476
Output for 5.5.11
0.075937986373901 0.023955106735229
Output for 5.5.10
0.086122035980225 0.024074077606201
Output for 5.5.9
0.10168600082397 0.027606964111328
Output for 5.5.8
0.09224796295166 0.023010015487671
Output for 5.5.7
0.074306964874268 0.023025989532471
Output for 5.5.6
0.1041271686554 0.027250051498413
Output for 5.5.5
0.091238975524902 0.023268938064575
Output for 5.5.4
0.073987007141113 0.02318000793457
Output for 5.5.3
0.097279071807861 0.023340940475464
Output for 5.5.2
0.098026990890503 0.024335861206055
Output for 5.5.1
0.080009937286377 0.023236036300659
Output for 5.5.0
0.088427066802979 0.023698806762695
Output for 5.4.45
0.089227914810181 0.022287130355835
Output for 5.4.44
0.089890003204346 0.022273063659668
Output for 5.4.43
0.091202974319458 0.025068044662476
Output for 5.4.42
0.07141900062561 0.021924018859863
Output for 5.4.41
0.070342063903809 0.021924018859863
Output for 5.4.40
0.083910942077637 0.022507905960083
Output for 5.4.39
0.087712049484253 0.021919965744019
Output for 5.4.38
0.085877895355225 0.022057056427002
Output for 5.4.37
0.10430693626404 0.026177883148193
Output for 5.4.36
0.083256006240845 0.022174119949341
Output for 5.4.35
0.1027250289917 0.026643037796021
Output for 5.4.34
0.080584049224854 0.021975040435791
Output for 5.4.32
0.096218109130859 0.023748874664307
Output for 5.4.31
0.099313020706177 0.026710987091064
Output for 5.4.30
0.098790168762207 0.025757074356079
Output for 5.4.29
0.09843921661377 0.024441957473755
Output for 5.4.28
0.083292961120605 0.024141073226929
Output for 5.4.27
0.086835145950317 0.022842884063721
Output for 5.4.26
0.0888991355896 0.022864103317261
Output for 5.4.25
0.10639691352844 0.026365995407104
Output for 5.4.24
0.10271501541138 0.025747060775757
Output for 5.4.23
0.082489013671875 0.022176027297974
Output for 5.4.22
0.087702035903931 0.022449016571045
Output for 5.4.21
0.11135697364807 0.025792121887207
Output for 5.4.20
0.10375905036926 0.02484393119812
Output for 5.4.19
0.10212779045105 0.026212930679321
Output for 5.4.18
0.10448288917542 0.026214838027954
Output for 5.4.17
0.10678601264954 0.026220083236694
Output for 5.4.16
0.10419511795044 0.024682998657227
Output for 5.4.15
0.080273151397705 0.021955013275146
Output for 5.4.14
0.081738948822021 0.022363185882568
Output for 5.4.13
0.098111867904663 0.02347993850708
Output for 5.4.12
0.086982011795044 0.022830963134766
Output for 5.4.11
0.10817909240723 0.026000022888184
Output for 5.4.10
0.097434043884277 0.024458885192871
Output for 5.4.9
0.10916900634766 0.026108026504517
Output for 5.4.8
0.11013507843018 0.026860952377319
Output for 5.4.7
0.085000991821289 0.022802829742432
Output for 5.4.6
0.10630416870117 0.026900053024292
Output for 5.4.5
0.10889792442322 0.026031017303467
Output for 5.4.4
0.10316705703735 0.025300979614258
Output for 5.4.3
0.09841513633728 0.02618408203125
Output for 5.4.2
0.099961042404175 0.025307893753052
Output for 5.4.1
0.095773935317993 0.024950981140137
Output for 5.4.0
0.10297703742981 0.026420116424561
Output for 5.3.29
0.10642600059509 0.027554035186768
Output for 5.3.28
0.12626004219055 0.033914089202881
Output for 5.3.27
0.087095975875854 0.027278184890747
Output for 5.3.26
0.12625193595886 0.030578136444092
Output for 5.3.25
0.12226796150208 0.031569957733154
Output for 5.3.24
0.12404298782349 0.032382011413574
Output for 5.3.23
0.10315203666687 0.028128147125244
Output for 5.3.22
0.099105834960938 0.027987003326416
Output for 5.3.21
0.11705613136292 0.030431032180786
Output for 5.3.20
0.12177681922913 0.031820058822632
Output for 5.3.19
0.11874604225159 0.032565116882324
Output for 5.3.18
0.11106514930725 0.028428077697754
Output for 5.3.17
0.11832213401794 0.030715942382812
Output for 5.3.16
0.10088014602661 0.02924919128418
Output for 5.3.15
0.12080192565918 0.03006386756897
Output for 5.3.14
0.10897302627563 0.028462171554565
Output for 5.3.13
0.13067388534546 0.031806945800781
Output for 5.3.12
0.10756587982178 0.028577089309692
Output for 5.3.11
0.12437510490417 0.028949975967407
Output for 5.3.10
0.12178993225098 0.032646894454956
Output for 5.3.9
0.11029005050659 0.028481006622314
Output for 5.3.8
0.12065887451172 0.031666994094849
Output for 5.3.7
0.11060309410095 0.030603170394897
Output for 5.3.6
0.10969209671021 0.029171943664551
Output for 5.3.5
0.11015295982361 0.027170896530151
Output for 5.3.4
0.12101697921753 0.031141996383667
Output for 5.3.3
0.12740778923035 0.03144097328186
Output for 5.3.2
0.12415194511414 0.031006813049316
Output for 5.3.1
0.093729972839355 0.028436183929443
Output for 5.3.0
0.11131191253662 0.028852939605713
Output for 5.2.17
0.12513184547424 0.035578012466431
Output for 5.2.16
0.14042496681213 0.038022994995117
Output for 5.2.15
0.12744307518005 0.036696910858154
Output for 5.2.14
0.11775803565979 0.034815073013306
Output for 5.2.13
0.12092399597168 0.035270929336548
Output for 5.2.12
0.1241569519043 0.035707950592041
Output for 5.2.11
0.10808992385864 0.033842802047729
Output for 5.2.10
0.12799906730652 0.034197092056274
Output for 5.2.9
0.13123917579651 0.041529893875122
Output for 5.2.8
0.13463187217712 0.039048910140991
Output for 5.2.7
0.12900805473328 0.036566019058228
Output for 5.2.6
0.12666296958923 0.036885976791382
Output for 5.2.5
0.10030102729797 0.036093950271606
Output for 5.2.4
0.13972091674805 0.039137840270996
Output for 5.2.3
0.13379693031311 0.036478996276855
Output for 5.2.2
0.16339588165283 0.037235021591187
Output for 5.2.1
0.13714909553528 0.03790807723999
Output for 5.2.0
0.11397409439087 0.03554892539978
Output for 5.1.6
0.12193393707275 0.03567910194397
Output for 5.1.5
0.084275960922241 0.034708976745605
Output for 5.1.4
0.10619807243347 0.042131185531616
Output for 5.1.3
0.071536064147949 0.02901291847229
Output for 5.1.2
0.084810018539429 0.052349805831909
Output for 5.1.1
0.086568117141724 0.051133155822754
Output for 5.1.0
0.073700904846191 0.043997049331665
Output for 5.0.5
0.18549394607544 0.12131094932556
Output for 5.0.4
0.18643403053284 0.11916494369507
Output for 5.0.3
0.13675618171692 0.093278884887695
Output for 5.0.2
0.16601300239563 0.10585403442383
Output for 5.0.1
0.14038300514221 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.091902017593384 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 5.0.0
0.16868209838867 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.1122579574585 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 4.4.9
0.22317 0.111322
Output for 4.4.8
0.209453 0.118174
Output for 4.4.7
0.224813 0.115597
Output for 4.4.6
0.194914 0.112702
Output for 4.4.5
0.190835 0.113155
Output for 4.4.4
0.19122 0.112721
Output for 4.4.3
0.162572 0.105761
Output for 4.4.2
0.164872 0.11542
Output for 4.4.1
0.171298 0.111773
Output for 4.4.0
0.160311 0.096813
Output for 4.3.11
0.158653 0.102824
Output for 4.3.10
0.136821 0.094218
Output for 4.3.9
0.16554 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.108889 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 4.3.8
0.170388 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.095071 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 4.3.7
0.184068 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.111988 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 4.3.6
0.202706 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.114878 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 4.3.5
0.214782 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.115497 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 4.3.4
0.211422 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.108723 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 4.3.3
0.191457 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.109966 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 4.3.2
0.214817 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.113034 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 4.3.1
0.235351 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.10853 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL
Output for 4.3.0
0.203885 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 11 PHP_EOL0.108677 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MGubW on line 20 PHP_EOL