3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo; $start = microtime(true); for ($i=0;$i<10000;$i++) { $a = is_null($i); } var_dump(microtime(true) - $start); $start = microtime(true); for ($i=0;$i<10000;$i++) { $a = null === $i; } var_dump(microtime(true) - $start);
based on LR3V9
Output for 7.2.0
float(0.00034499168395996) float(0.00020194053649902)
Output for 7.1.10
float(0.00045204162597656) float(0.00024318695068359)
Output for 7.1.7
float(0.00023603439331055) float(0.00012397766113281)
Output for 7.1.6
float(0.00059199333190918) float(0.00032401084899902)
Output for 7.1.5
float(0.00058102607727051) float(0.00031399726867676)
Output for 7.1.0
float(0.00039410591125488) float(0.00021505355834961)
Output for 7.0.20
float(0.00027894973754883) float(0.0001518726348877)
Output for 7.0.6
float(0.00021696090698242) float(0.00010991096496582)
Output for 7.0.5
float(0.0003058910369873) float(0.00015592575073242)
Output for 7.0.4
float(0.00023198127746582) float(0.0001370906829834)
Output for 7.0.3
float(0.00031495094299316) float(0.00017189979553223)
Output for 7.0.2
float(0.00023579597473145) float(0.00014495849609375)
Output for 7.0.1
float(0.00037002563476562) float(0.00019693374633789)
Output for 7.0.0
float(0.00024294853210449) float(0.00012588500976562)
Output for 5.6.28
float(0.0013139247894287) float(0.00083494186401367)
Output for 5.6.21
float(0.00075292587280273) float(0.00032305717468262)
Output for 5.6.20
float(0.00093913078308105) float(0.00038981437683105)
Output for 5.6.19
float(0.00078296661376953) float(0.00033402442932129)
Output for 5.6.18
float(0.00078797340393066) float(0.00035500526428223)
Output for 5.6.17
float(0.0011360645294189) float(0.00046086311340332)
Output for 5.6.16
float(0.0011870861053467) float(0.00049805641174316)
Output for 5.6.15
float(0.00079798698425293) float(0.00033092498779297)
Output for 5.6.14
float(0.0010411739349365) float(0.00045013427734375)
Output for 5.6.13
float(0.0012688636779785) float(0.00052404403686523)
Output for 5.6.12
float(0.0010490417480469) float(0.00048303604125977)
Output for 5.6.11
float(0.0008080005645752) float(0.00035905838012695)
Output for 5.6.10
float(0.0010340213775635) float(0.00038981437683105)
Output for 5.6.9
float(0.00075292587280273) float(0.00034809112548828)
Output for 5.6.8
float(0.0011098384857178) float(0.00049090385437012)
Output for 5.5.35
float(0.0012519359588623) float(0.00047898292541504)
Output for 5.5.34
float(0.001338005065918) float(0.00052690505981445)
Output for 5.5.33
float(0.0012631416320801) float(0.00053215026855469)
Output for 5.5.32
float(0.00084400177001953) float(0.00035381317138672)
Output for 5.5.31
float(0.0012331008911133) float(0.00047492980957031)
Output for 5.5.30
float(0.00085592269897461) float(0.00033211708068848)
Output for 5.5.29
float(0.0011138916015625) float(0.00043702125549316)
Output for 5.5.28
float(0.0011270046234131) float(0.00046896934509277)
Output for 5.5.27
float(0.0012719631195068) float(0.00047397613525391)
Output for 5.5.26
float(0.0012750625610352) float(0.00053000450134277)
Output for 5.5.25
float(0.0012631416320801) float(0.00051784515380859)
Output for 5.5.24
float(0.0013220310211182) float(0.00051999092102051)
Output for 5.4.45
float(0.0011739730834961) float(0.00046396255493164)
Output for 5.4.44
float(0.001248836517334) float(0.00066614151000977)
Output for 5.4.43
float(0.0012979507446289) float(0.00053882598876953)
Output for 5.4.42
float(0.0013620853424072) float(0.00059294700622559)
Output for 5.4.41
float(0.0011889934539795) float(0.00054693222045898)
Output for 5.4.40
float(0.0013401508331299) float(0.00068116188049316)
Output for 5.4.39
float(0.0016980171203613) float(0.00065803527832031)
Output for 5.4.38
float(0.0012249946594238) float(0.00047588348388672)
Output for 5.4.37
float(0.0015058517456055) float(0.00059103965759277)
Output for 5.4.36
float(0.0014159679412842) float(0.00069499015808105)
Output for 5.4.35
float(0.0012521743774414) float(0.00070405006408691)
Output for 5.4.34
float(0.0017518997192383) float(0.00050902366638184)
Output for 5.4.32
float(0.0012669563293457) float(0.00069594383239746)
Output for 5.4.31
float(0.0012650489807129) float(0.00085306167602539)
Output for 5.4.30
float(0.0012819766998291) float(0.00049710273742676)
Output for 5.4.29
float(0.0013000965118408) float(0.00060892105102539)
Output for 5.4.28
float(0.001417875289917) float(0.00056982040405273)
Output for 5.4.27
float(0.0012540817260742) float(0.0004730224609375)
Output for 5.4.26
float(0.0014078617095947) float(0.00056886672973633)
Output for 5.4.25
float(0.0012919902801514) float(0.00046515464782715)
Output for 5.4.24
float(0.0016369819641113) float(0.00059008598327637)
Output for 5.4.23
float(0.0014581680297852) float(0.00051093101501465)
Output for 5.4.22
float(0.0012640953063965) float(0.00046896934509277)
Output for 5.4.21
float(0.0017311573028564) float(0.00051212310791016)
Output for 5.4.20
float(0.0011701583862305) float(0.00046706199645996)
Output for 5.4.19
float(0.0011801719665527) float(0.00047183036804199)
Output for 5.4.18
float(0.0014128684997559) float(0.00047183036804199)
Output for 5.4.17
float(0.001288890838623) float(0.0004880428314209)
Output for 5.4.16
float(0.0011920928955078) float(0.00049591064453125)
Output for 5.4.15
float(0.0012362003326416) float(0.00057411193847656)
Output for 5.4.14
float(0.001183032989502) float(0.00057506561279297)
Output for 5.4.13
float(0.0012319087982178) float(0.00046992301940918)
Output for 5.4.12
float(0.0015490055084229) float(0.00082993507385254)
Output for 5.4.11
float(0.0014851093292236) float(0.00048184394836426)
Output for 5.3.29
float(0.001655101776123) float(0.0029618740081787)
Output for 5.3.28
float(0.0015881061553955) float(0.001802921295166)
Output for 5.3.27
float(0.0019888877868652) float(0.0019271373748779)
Output for 5.3.26
float(0.0015840530395508) float(0.0015749931335449)
Output for 5.3.25
float(0.0016429424285889) float(0.0015239715576172)
Output for 5.3.24
float(0.0016469955444336) float(0.0020930767059326)
Output for 5.3.23
float(0.0018668174743652) float(0.0015499591827393)
Output for 5.3.22
float(0.0019209384918213) float(0.0016257762908936)
Output for 5.3.21
float(0.0016889572143555) float(0.0016670227050781)