3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ($foo = rand() && 'asdf' != 'qwer') { var_dump($foo); } if (($foo = rand()) && 'asdf' != 'qwer') { var_dump($foo); }
Output for 7.1.0
bool(true) int(1787820567)
Output for 7.0.14
bool(true) int(1005512961)
Output for 7.0.12
bool(true) int(627051255)
Output for 7.0.6
bool(true) int(1190191005)
Output for 7.0.5
bool(true) int(1901638251)
Output for 7.0.4
bool(true) int(1465088547)
Output for 7.0.3
bool(true) int(769400110)
Output for 7.0.2
bool(true) int(26158755)
Output for 7.0.1
bool(true) int(1817664060)
Output for 7.0.0
bool(true) int(1581305842)
Output for 5.6.28
bool(true) int(1368675408)
Output for 5.6.21
bool(true) int(1025550318)
Output for 5.6.20
bool(true) int(374923131)
Output for 5.6.19
bool(true) int(488668992)
Output for 5.6.18
bool(true) int(1569892115)
Output for 5.6.17
bool(true) int(1375060983)
Output for 5.6.16
bool(true) int(1235001029)
Output for 5.6.15
bool(true) int(558289952)
Output for 5.6.14
bool(true) int(1665649710)
Output for 5.6.13
bool(true) int(1999376515)
Output for 5.6.12
bool(true) int(307869647)
Output for 5.6.11
bool(true) int(399271820)
Output for 5.6.10
bool(true) int(1757134761)
Output for 5.6.9
bool(true) int(1302819946)
Output for 5.6.8
bool(true) int(2086821547)
Output for 5.6.7
bool(true) int(137553820)
Output for 5.6.6
bool(true) int(55461051)
Output for 5.6.5
bool(true) int(1127314171)
Output for 5.6.4
bool(true) int(1803694295)
Output for 5.6.3
bool(true) int(1299439699)
Output for 5.6.2
bool(true) int(1098429250)
Output for 5.6.1
bool(true) int(1936990469)
Output for 5.6.0
bool(true) int(14200238)
Output for 5.5.35
bool(true) int(554927126)
Output for 5.5.34
bool(true) int(1947878041)
Output for 5.5.33
bool(true) int(1974727544)
Output for 5.5.32
bool(true) int(1974574487)
Output for 5.5.31
bool(true) int(425103693)
Output for 5.5.30
bool(true) int(1469922126)
Output for 5.5.29
bool(true) int(1740849127)
Output for 5.5.28
bool(true) int(1129371953)
Output for 5.5.27
bool(true) int(1060071977)
Output for 5.5.26
bool(true) int(528293570)
Output for 5.5.25
bool(true) int(1057907141)
Output for 5.5.24
bool(true) int(898774895)
Output for 5.5.23
bool(true) int(1991035688)
Output for 5.5.22
bool(true) int(437865996)
Output for 5.5.21
bool(true) int(257000445)
Output for 5.5.20
bool(true) int(842746991)
Output for 5.5.19
bool(true) int(1732831981)
Output for 5.5.18
bool(true) int(1263432253)
Output for 5.5.16
bool(true) int(1895787607)
Output for 5.5.15
bool(true) int(1196944758)
Output for 5.5.14
bool(true) int(245103732)
Output for 5.5.13
bool(true) int(430189016)
Output for 5.5.12
bool(true) int(31946208)
Output for 5.5.11
bool(true) int(1900679150)
Output for 5.5.10
bool(true) int(1611672550)
Output for 5.5.9
bool(true) int(717424383)
Output for 5.5.8
bool(true) int(478643990)
Output for 5.5.7
bool(true) int(302046238)
Output for 5.5.6
bool(true) int(1326970317)
Output for 5.5.5
bool(true) int(2080167268)
Output for 5.5.4
bool(true) int(1204789858)
Output for 5.5.3
bool(true) int(273129070)
Output for 5.5.2
bool(true) int(462888137)
Output for 5.5.1
bool(true) int(662991984)
Output for 5.5.0
bool(true) int(54548601)
Output for 5.4.45
bool(true) int(734990232)
Output for 5.4.44
bool(true) int(497165044)
Output for 5.4.43
bool(true) int(2049416575)
Output for 5.4.42
bool(true) int(1769392754)
Output for 5.4.41
bool(true) int(1995145247)
Output for 5.4.40
bool(true) int(627554815)
Output for 5.4.39
bool(true) int(1441018256)
Output for 5.4.38
bool(true) int(315289561)
Output for 5.4.37
bool(true) int(1313577632)
Output for 5.4.36
bool(true) int(1507126545)
Output for 5.4.35
bool(true) int(1470750203)
Output for 5.4.34
bool(true) int(285909319)
Output for 5.4.32
bool(true) int(727400069)
Output for 5.4.31
bool(true) int(413902712)
Output for 5.4.30
bool(true) int(2051322775)
Output for 5.4.29
bool(true) int(944051541)
Output for 5.4.28
bool(true) int(1246046687)
Output for 5.4.27
bool(true) int(1860218541)
Output for 5.4.26
bool(true) int(896109602)
Output for 5.4.25
bool(true) int(513986639)
Output for 5.4.24
bool(true) int(1312779879)
Output for 5.4.23
bool(true) int(2049626731)
Output for 5.4.22
bool(true) int(49527396)
Output for 5.4.21
bool(true) int(38482491)
Output for 5.4.20
bool(true) int(737774595)
Output for 5.4.19
bool(true) int(250399595)
Output for 5.4.18
bool(true) int(1682113307)
Output for 5.4.17
bool(true) int(451333900)
Output for 5.4.16
bool(true) int(547119989)
Output for 5.4.15
bool(true) int(315569821)
Output for 5.4.14
bool(true) int(196470491)
Output for 5.4.13
bool(true) int(1431370555)
Output for 5.4.12
bool(true) int(110170476)
Output for 5.4.11
bool(true) int(767550510)
Output for 5.4.10
bool(true) int(1732534573)
Output for 5.4.9
bool(true) int(1987239442)
Output for 5.4.8
bool(true) int(581935026)
Output for 5.4.7
bool(true) int(1764906836)
Output for 5.4.6
bool(true) int(119041302)
Output for 5.4.5
bool(true) int(1023552732)
Output for 5.4.4
bool(true) int(363550196)
Output for 5.4.3
bool(true) int(916021443)
Output for 5.4.2
bool(true) int(274831276)
Output for 5.4.1
bool(true) int(1349875866)
Output for 5.4.0
bool(true) int(1819410089)
Output for 5.3.29
bool(true) int(1344627867)
Output for 5.3.28
bool(true) int(775404288)
Output for 5.3.27
bool(true) int(1088581871)
Output for 5.3.26
bool(true) int(1182461398)
Output for 5.3.25
bool(true) int(2052537304)
Output for 5.3.24
bool(true) int(371251776)
Output for 5.3.23
bool(true) int(935380798)
Output for 5.3.22
bool(true) int(1543451168)
Output for 5.3.21
bool(true) int(1697903894)
Output for 5.3.20
bool(true) int(1456801208)
Output for 5.3.19
bool(true) int(1161954598)
Output for 5.3.18
bool(true) int(1600330160)
Output for 5.3.17
bool(true) int(1926748064)
Output for 5.3.16
bool(true) int(575791069)
Output for 5.3.15
bool(true) int(427494541)
Output for 5.3.14
bool(true) int(1321262446)
Output for 5.3.13
bool(true) int(382879109)
Output for 5.3.12
bool(true) int(1159591354)
Output for 5.3.11
bool(true) int(89456115)
Output for 5.3.10
bool(true) int(377979965)
Output for 5.3.9
bool(true) int(1857669182)
Output for 5.3.8
bool(true) int(1741908157)
Output for 5.3.7
bool(true) int(1657417499)
Output for 5.3.6
bool(true) int(169030808)
Output for 5.3.5
bool(true) int(744078386)
Output for 5.3.4
bool(true) int(1715566202)
Output for 5.3.3
bool(true) int(1418197984)
Output for 5.3.2
bool(true) int(1419273300)
Output for 5.3.1
bool(true) int(262587115)
Output for 5.3.0
bool(true) int(184971647)
Output for 5.2.17
bool(true) int(1661564694)
Output for 5.2.16
bool(true) int(1652862581)
Output for 5.2.15
bool(true) int(106759824)
Output for 5.2.14
bool(true) int(1024344177)
Output for 5.2.13
bool(true) int(1206582440)
Output for 5.2.12
bool(true) int(1518296106)
Output for 5.2.11
bool(true) int(685357731)
Output for 5.2.10
bool(true) int(1717379799)
Output for 5.2.9
bool(true) int(978323091)
Output for 5.2.8
bool(true) int(769204618)
Output for 5.2.7
bool(true) int(698012203)
Output for 5.2.6
bool(true) int(526323286)
Output for 5.2.5
bool(true) int(97007699)
Output for 5.2.4
bool(true) int(1909332669)
Output for 5.2.3
bool(true) int(489612261)
Output for 5.2.2
bool(true) int(778407454)
Output for 5.2.1
bool(true) int(1417592561)
Output for 5.2.0
bool(true) int(1036333267)
Output for 5.1.6
bool(true) int(514253834)
Output for 5.1.5
bool(true) int(762943700)
Output for 5.1.4
bool(true) int(1000564101)
Output for 5.1.3
bool(true) int(1768605276)
Output for 5.1.2
bool(true) int(397953959)
Output for 5.1.1
bool(true) int(1120039162)
Output for 5.1.0
bool(true) int(987667644)
Output for 5.0.5
bool(true) int(1301445107)
Output for 5.0.4
bool(true) int(1813163942)
Output for 5.0.3
bool(true) int(1044618875)
Output for 5.0.2
bool(true) int(174141487)
Output for 5.0.1
bool(true) int(1772143269)
Output for 5.0.0
bool(true) int(1346082971)
Output for 4.4.9
bool(true) int(2030249618)
Output for 4.4.8
bool(true) int(1437490177)
Output for 4.4.7
bool(true) int(1129597414)
Output for 4.4.6
bool(true) int(1271329832)
Output for 4.4.5
bool(true) int(1857827865)
Output for 4.4.4
bool(true) int(111984176)
Output for 4.4.3
bool(true) int(1639626830)
Output for 4.4.2
bool(true) int(1996018990)
Output for 4.4.1
bool(true) int(1919574168)
Output for 4.4.0
bool(true) int(1263523022)
Output for 4.3.11
bool(true) int(246816742)
Output for 4.3.10
bool(true) int(418382727)
Output for 4.3.9
bool(true) int(1953624692)
Output for 4.3.8
bool(true) int(1731892395)
Output for 4.3.7
bool(true) int(477406930)
Output for 4.3.6
bool(true) int(49672772)
Output for 4.3.5
bool(true) int(977977911)
Output for 4.3.4
bool(true) int(1046835330)
Output for 4.3.3
bool(true) int(825734969)
Output for 4.3.2
bool(true) int(424171117)
Output for 4.3.1
bool(true) int(695718817)
Output for 4.3.0
bool(true) int(1138579033)