3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $id = rand(1000, 9999) . '2'; var_dump($id); var_dump(crc32($id)); var_dump(crc32($id) % 5);
based on iX2Tj
Output for 7.1.0
string(5) "34222" int(1570926258) int(3)
Output for 7.0.14
string(5) "64832" int(2177783125) int(0)
Output for 7.0.6
string(5) "10032" int(2996785066) int(1)
Output for 7.0.5
string(5) "68252" int(2429929661) int(1)
Output for 7.0.4
string(5) "46592" int(2737878375) int(0)
Output for 7.0.3
string(5) "39402" int(2574493791) int(1)
Output for 7.0.2
string(5) "64892" int(2065808863) int(3)
Output for 7.0.1
string(5) "49292" int(4263293876) int(1)
Output for 7.0.0
string(5) "63422" int(202941897) int(2)
Output for hhvm-3.12.0
string(5) "29562" int(4085992542) int(2)
Output for hhvm-3.10.0
string(5) "91212" int(199349730) int(0)
Output for 5.6.28
string(5) "39012" int(2271293890) int(0)
Output for 5.6.21
string(5) "45802" int(1755263635) int(0)
Output for 5.6.20
string(5) "13282" int(1079700961) int(1)
Output for 5.6.19
string(5) "94922" int(457677298) int(3)
Output for 5.6.18
string(5) "29752" int(3676490739) int(4)
Output for 5.6.17
string(5) "21492" int(2959413833) int(3)
Output for 5.6.16
string(5) "15872" int(4013828900) int(0)
Output for 5.6.15
string(5) "15242" int(3380935985) int(0)
Output for 5.6.14
string(5) "38582" int(3906219781) int(1)
Output for 5.6.13
string(5) "17522" int(815301817) int(2)
Output for 5.6.12
string(5) "82352" int(1100676239) int(4)
Output for 5.6.11
string(5) "90392" int(2051429048) int(3)
Output for 5.6.10
string(5) "56612" int(1422895238) int(3)
Output for 5.6.9
string(5) "91502" int(397799974) int(4)
Output for 5.6.8
string(5) "57272" int(3173040313) int(3)
Output for 5.5.35
string(5) "79872" int(715678012) int(2)
Output for 5.5.34
string(5) "64522" int(2416834375) int(0)
Output for 5.5.33
string(5) "58572" int(3758933610) int(0)
Output for 5.5.32
string(5) "45102" int(1733167388) int(3)
Output for 5.5.31
string(5) "48872" int(3585375369) int(4)
Output for 5.5.30
string(5) "39712" int(2184062791) int(1)
Output for 5.5.29
string(5) "17892" int(3686059553) int(3)
Output for 5.5.28
string(5) "18602" int(1485522996) int(1)
Output for 5.5.27
string(5) "58832" int(2360905789) int(4)
Output for 5.5.26
string(5) "62712" int(2647600950) int(0)
Output for 5.5.25
string(5) "25842" int(2209546807) int(2)
Output for 5.5.24
string(5) "74942" int(4063068181) int(1)
Output for 5.4.45
string(5) "52862" int(2658305052) int(2)
Output for 5.4.44
string(5) "22612" int(1770906561) int(1)
Output for 5.4.43
string(5) "62682" int(1305476680) int(0)
Output for 5.4.42
string(5) "15322" int(2652647552) int(2)
Output for 5.4.38, 5.4.41
string(5) "43562" int(326523290) int(0)
Output for 5.4.40
string(5) "32192" int(2574997244) int(4)
Output for 5.4.39
string(5) "35902" int(3682436276) int(1)
Output for 5.4.37
string(5) "71382" int(1691466493) int(3)
Output for 5.4.36
string(5) "34872" int(759308065) int(0)
Output for 5.4.35
string(5) "37692" int(2884284491) int(1)
Output for 5.4.34
string(5) "92782" int(3462202286) int(1)
Output for 5.4.32
string(5) "50302" int(1853097200) int(0)
Output for 5.4.31
string(5) "10942" int(4061127394) int(4)
Output for 5.4.30
string(5) "57002" int(4058350096) int(1)
Output for 5.4.29
string(5) "20542" int(3166003542) int(2)
Output for 5.4.28
string(5) "25672" int(2717940990) int(0)
Output for 5.4.27
string(5) "15202" int(2917677109) int(4)
Output for 5.4.26
string(5) "94422" int(329190049) int(4)
Output for 5.4.25
string(5) "71422" int(2607891698) int(3)
Output for 5.4.24
string(5) "95512" int(2177651760) int(0)
Output for 5.4.23
string(5) "88902" int(1590127992) int(2)
Output for 5.4.22
string(5) "27172" int(222733040) int(0)
Output for 5.4.21
string(5) "26392" int(687684725) int(0)
Output for 5.4.20
string(5) "67582" int(2019012643) int(3)
Output for 5.4.19
string(5) "73462" int(1427392893) int(3)
Output for 5.4.18
string(5) "93842" int(3506990330) int(0)
Output for 5.4.17
string(5) "60862" int(1943746119) int(4)
Output for 5.4.16
string(5) "73372" int(1228959417) int(2)
Output for 5.4.15
string(5) "60812" int(1016766592) int(2)
Output for 5.4.14
string(5) "91992" int(3480072203) int(3)
Output for 5.4.13
string(5) "13962" int(3532402574) int(4)
Output for 5.4.12
string(5) "31222" int(1786551936) int(1)
Output for 5.4.11
string(5) "95642" int(4278001196) int(1)
Output for 5.4.10
string(5) "80592" int(1135282106) int(1)
Output for 5.4.9
string(5) "67232" int(2666299245) int(0)
Output for 5.4.8
string(5) "58122" int(2591202035) int(0)
Output for 5.4.7
string(5) "88482" int(2663805987) int(2)
Output for 5.4.6
string(5) "41292" int(1000905563) int(3)
Output for 5.4.5
string(5) "65592" int(3410315753) int(3)
Output for 5.4.4
string(5) "57792" int(627584988) int(3)
Output for 5.4.3
string(5) "24832" int(1951331221) int(1)
Output for 5.4.2
string(5) "70062" int(1084771919) int(4)
Output for 5.4.1
string(5) "40422" int(1684887879) int(4)
Output for 5.4.0
string(5) "74592" int(1318651708) int(3)
Output for 5.3.29
string(5) "21682" int(2868574054) int(4)
Output for 5.3.28
string(5) "63612" int(615588452) int(2)
Output for 5.3.27
string(5) "79442" int(144690075) int(0)
Output for 5.3.26
string(5) "81092" int(4259095092) int(2)
Output for 5.3.25
string(5) "23332" int(3855361229) int(4)
Output for 5.3.24
string(5) "50972" int(748820449) int(4)
Output for 5.3.23
string(5) "68612" int(4088440165) int(0)
Output for 5.3.22
string(5) "20422" int(3945639143) int(3)
Output for 5.3.21
string(5) "89002" int(3920245138) int(3)
Output for 5.3.20
string(5) "17062" int(1379894102) int(2)
Output for 5.3.19
string(5) "84172" int(1430459839) int(4)
Output for 5.3.18
string(5) "15082" int(1723164243) int(3)
Output for 5.3.17
string(5) "10532" int(3025440065) int(0)
Output for 5.3.16
string(5) "79982" int(2901546948) int(3)
Output for 5.3.15
string(5) "21072" int(703567643) int(3)
Output for 5.3.14
string(5) "35182" int(498556676) int(1)
Output for 5.3.13
string(5) "84372" int(1455931857) int(2)
Output for 5.3.12
string(5) "46332" int(1565663583) int(3)
Output for 5.3.11
string(5) "42832" int(3731184105) int(0)
Output for 5.3.10
string(5) "94072" int(1776375352) int(2)
Output for 5.3.9
string(5) "29302" int(2707199850) int(0)
Output for 5.3.8
string(5) "30552" int(2563668391) int(1)
Output for 5.3.7
string(5) "31842" int(833731792) int(2)
Output for 5.3.6
string(5) "41992" int(939357370) int(0)
Output for 5.3.5
string(5) "37512" int(1635091482) int(2)
Output for 5.3.4
string(5) "31362" int(265433523) int(3)
Output for 5.3.3
string(5) "51612" int(3373830207) int(2)
Output for 5.3.2
string(5) "34512" int(1941974004) int(4)
Output for 5.3.1
string(5) "11472" int(1766212887) int(2)
Output for 5.3.0
string(5) "26312" int(3760502397) int(2)
Output for 5.2.17
string(5) "46492" int(2733825872) int(2)
Output for 5.2.16
string(5) "92332" int(715158201) int(1)
Output for 5.2.15
string(5) "15002" int(2926373979) int(4)
Output for 5.2.14
string(5) "44582" int(270683309) int(4)
Output for 5.2.13
string(5) "47502" int(3394136395) int(0)
Output for 5.2.12
string(5) "58272" int(3846426863) int(3)
Output for 5.2.11
string(5) "11972" int(1637799492) int(2)
Output for 5.2.10
string(5) "23432" int(3766694472) int(2)
Output for 5.2.9
string(5) "45892" int(3109915098) int(3)
Output for 5.2.8
string(5) "67652" int(3485429815) int(0)
Output for 5.2.7
string(5) "78782" int(516971947) int(2)
Output for 5.2.6
string(5) "39072" int(3510343236) int(1)
Output for 5.2.5
string(5) "39452" int(3825490970) int(0)
Output for 5.2.4
string(5) "53702" int(2076705730) int(0)
Output for 5.2.3
string(5) "96182" int(1169352779) int(4)
Output for 5.2.2
string(5) "35522" int(3763412818) int(3)
Output for 5.2.1
string(5) "79532" int(1176254315) int(0)
Output for 5.2.0
string(5) "89262" int(3161735802) int(2)
Output for 5.1.6
string(5) "95142" int(4222748841) int(1)
Output for 5.1.5
string(5) "49652" int(1436570724) int(4)
Output for 5.1.4
string(5) "72682" int(1890572280) int(0)
Output for 5.1.3
string(5) "52842" int(2890196638) int(3)
Output for 5.1.2
string(5) "89582" int(666401137) int(2)
Output for 5.1.1
string(5) "86972" int(4049177740) int(0)
Output for 5.1.0
string(5) "31772" int(297838638) int(3)
Output for 5.0.5
string(5) "57872" int(2964800879) int(4)
Output for 5.0.4
string(5) "67752" int(3464305152) int(2)
Output for 5.0.3
string(5) "95762" int(3439924889) int(4)
Output for 5.0.2
string(5) "78372" int(2655119800) int(0)
Output for 5.0.1
string(5) "37872" int(1073197263) int(3)
Output for 5.0.0
string(5) "40392" int(2195101193) int(3)
Output for 4.4.9
string(5) "37702" int(2078957877) int(2)
Output for 4.4.8
string(5) "38852" int(1436729883) int(3)
Output for 4.4.7
string(5) "36302" int(3294604940) int(0)
Output for 4.4.6
string(5) "21042" int(46318808) int(3)
Output for 4.4.5
string(5) "53672" int(894172978) int(3)
Output for 4.4.4
string(5) "82802" int(817424171) int(1)
Output for 4.4.3
string(5) "83092" int(1473604287) int(2)
Output for 4.4.2
string(5) "22482" int(3150679270) int(0)
Output for 4.4.1
string(5) "55572" int(308682423) int(3)
Output for 4.4.0
string(5) "90262" int(4229702720) int(0)
Output for 4.3.11
string(5) "89632" int(3322552035) int(0)
Output for 4.3.10
string(5) "20852" int(2910241604) int(4)
Output for 4.3.9
string(5) "74662" int(3410470314) int(4)
Output for 4.3.8
string(5) "19182" int(765572060) int(0)
Output for 4.3.7
string(5) "81422" int(421647139) int(4)
Output for 4.3.6
string(5) "85942" int(3368120481) int(1)
Output for 4.3.5
string(5) "71492" int(2022022457) int(2)
Output for 4.3.4
string(5) "26092" int(716931628) int(3)
Output for 4.3.3
string(5) "81852" int(1601879168) int(3)
Output for 4.3.2
string(5) "88002" int(1360418551) int(1)
Output for 4.3.1
string(5) "38232" int(242212939) int(4)
Output for 4.3.0
string(5) "14262" int(1125054678) int(3)