3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Thing { public function stuff() { $lambda = function() { static $y; $y++; }; var_dump(spl_object_hash($lambda)); } } $x = new Thing(); $x->stuff(); $x->stuff();
based on scjBP
Output for 7.2.0
string(32) "000000005dd24663000000005232ac37" string(32) "000000005dd24663000000005232ac37"
Output for 7.1.10
string(32) "00000000381f4f3d000000006e9b1dff" string(32) "00000000381f4f3d000000006e9b1dff"
Output for 7.1.7
string(32) "000000007027ab1f0000000050be3eb6" string(32) "000000007027ab1f0000000050be3eb6"
Output for 7.1.6
string(32) "00000000351d62d5000000004a2c9339" string(32) "00000000351d62d5000000004a2c9339"
Output for 7.1.5
string(32) "0000000049b69d5b00000000226e952c" string(32) "0000000049b69d5b00000000226e952c"
Output for 7.1.0
string(32) "000000000a57891f000000006defe6f3" string(32) "000000000a57891f000000006defe6f3"
Output for 7.0.20
string(32) "000000005accfbce00000000325063c2" string(32) "000000005accfbce00000000325063c2"
Output for 7.0.6
string(32) "000000007388109400000000018f172e" string(32) "000000007388109400000000018f172e"
Output for 7.0.5
string(32) "000000002b227c560000000029567540" string(32) "000000002b227c560000000029567540"
Output for 7.0.4
string(32) "0000000042847bcd000000001b06e38f" string(32) "0000000042847bcd000000001b06e38f"
Output for 7.0.3
string(32) "000000004b65b999000000005b8ffe6f" string(32) "000000004b65b999000000005b8ffe6f"
Output for 7.0.2
string(32) "000000007780e1c700000000189a512c" string(32) "000000007780e1c700000000189a512c"
Output for 7.0.1
string(32) "0000000013fb541f000000007e85d3c3" string(32) "0000000013fb541f000000007e85d3c3"
Output for 7.0.0
string(32) "000000001f7401c80000000075c53cc3" string(32) "000000001f7401c80000000075c53cc3"
Output for 5.6.28
string(32) "000000002f29ebe1000000004086f624" string(32) "000000002f29ebe1000000004086f624"
Output for 5.6.21
string(32) "00000000565e3be30000000013644ff6" string(32) "00000000565e3be30000000013644ff6"
Output for 5.6.20
string(32) "000000003a3e2aee0000000018667f12" string(32) "000000003a3e2aee0000000018667f12"
Output for 5.6.19
string(32) "0000000035ef9b2300000000522564b4" string(32) "0000000035ef9b2300000000522564b4"
Output for 5.6.18
string(32) "000000003e8a09120000000061d5320d" string(32) "000000003e8a09120000000061d5320d"
Output for 5.6.17
string(32) "000000004778e1e100000000167e64ca" string(32) "000000004778e1e100000000167e64ca"
Output for 5.6.16
string(32) "000000006b8c11f30000000056646b2e" string(32) "000000006b8c11f30000000056646b2e"
Output for 5.6.15
string(32) "000000001f349da6000000002ed4ec7d" string(32) "000000001f349da6000000002ed4ec7d"
Output for 5.6.14
string(32) "000000005e8eaeaa000000007e2f9dad" string(32) "000000005e8eaeaa000000007e2f9dad"
Output for 5.6.13
string(32) "00000000155a7df100000000715f7c77" string(32) "00000000155a7df100000000715f7c77"
Output for 5.6.12
string(32) "000000002a7883360000000051d33e3c" string(32) "000000002a7883360000000051d33e3c"
Output for 5.6.11
string(32) "000000003577c8a90000000004af8794" string(32) "000000003577c8a90000000004af8794"
Output for 5.6.10
string(32) "0000000016be9d770000000072b9f9ff" string(32) "0000000016be9d770000000072b9f9ff"
Output for 5.6.9
string(32) "000000005a6f484f000000003833b713" string(32) "000000005a6f484f000000003833b713"
Output for 5.6.8
string(32) "00000000192bede30000000047e41c07" string(32) "00000000192bede30000000047e41c07"
Output for 5.5.35
string(32) "0000000056a70e6c00000000779b2300" string(32) "0000000056a70e6c00000000779b2300"
Output for 5.5.34
string(32) "000000002eca4a1f0000000020fe4c99" string(32) "000000002eca4a1f0000000020fe4c99"
Output for 5.5.33
string(32) "000000005cccbcdc000000006c7b3db2" string(32) "000000005cccbcdc000000006c7b3db2"
Output for 5.5.32
string(32) "00000000759a33c10000000014e57800" string(32) "00000000759a33c10000000014e57800"
Output for 5.5.31
string(32) "00000000085845b800000000380f4c98" string(32) "00000000085845b800000000380f4c98"
Output for 5.5.30
string(32) "000000003bb37d140000000076f60159" string(32) "000000003bb37d140000000076f60159"
Output for 5.5.29
string(32) "0000000021ac992c000000004fe28025" string(32) "0000000021ac992c000000004fe28025"
Output for 5.5.28
string(32) "00000000035d300c0000000062893a47" string(32) "00000000035d300c0000000062893a47"
Output for 5.5.27
string(32) "00000000366c460f000000007bad5616" string(32) "00000000366c460f000000007bad5616"
Output for 5.5.26
string(32) "0000000010606a4d00000000281a5f6d" string(32) "0000000010606a4d00000000281a5f6d"
Output for 5.5.25
string(32) "000000007ac76fdc000000005052bf5f" string(32) "000000007ac76fdc000000005052bf5f"
Output for 5.5.24
string(32) "000000001fb6d37700000000567ab3de" string(32) "000000001fb6d37700000000567ab3de"
Output for 5.4.45
string(32) "000000006ed174df0000000068b9d39b" string(32) "000000006ed174df0000000068b9d39b"
Output for 5.4.44
string(32) "00000000235a9282000000000fc980ae" string(32) "00000000235a9282000000000fc980ae"
Output for 5.4.43
string(32) "000000004eaf71fb0000000028ab8196" string(32) "000000004eaf71fb0000000028ab8196"
Output for 5.4.42
string(32) "00000000603affe70000000021a0bb6a" string(32) "00000000603affe70000000021a0bb6a"
Output for 5.4.41
string(32) "000000000bd42f9a000000003c873395" string(32) "000000000bd42f9a000000003c873395"
Output for 5.4.40
string(32) "000000005acd2c8d000000007abbb129" string(32) "000000005acd2c8d000000007abbb129"
Output for 5.4.39
string(32) "0000000020cfc758000000001e7d0507" string(32) "0000000020cfc758000000001e7d0507"
Output for 5.4.38
string(32) "000000002b6f7ef700000000762ca5a2" string(32) "000000002b6f7ef700000000762ca5a2"
Output for 5.4.37
string(32) "000000000706152f0000000068028205" string(32) "000000000706152f0000000068028205"
Output for 5.4.36
string(32) "0000000073842874000000003b6ae567" string(32) "0000000073842874000000003b6ae567"
Output for 5.4.35
string(32) "0000000073384544000000000a5a647c" string(32) "0000000073384544000000000a5a647c"
Output for 5.4.34
string(32) "0000000055e0a4ec0000000024c1d1d2" string(32) "0000000055e0a4ec0000000024c1d1d2"
Output for 5.4.32
string(32) "000000007bb93e210000000004353801" string(32) "000000007bb93e210000000004353801"
Output for 5.4.31
string(32) "00000000376f30ec000000000ad4df68" string(32) "00000000376f30ec000000000ad4df68"
Output for 5.4.30
string(32) "00000000407ae372000000006a7bbf0d" string(32) "00000000407ae372000000006a7bbf0d"
Output for 5.4.29
string(32) "000000003166495a00000000225c7c44" string(32) "000000003166495a00000000225c7c44"
Output for 5.4.28
string(32) "000000005fc1d6b9000000002e1b021e" string(32) "000000005fc1d6b9000000002e1b021e"
Output for 5.4.27
string(32) "000000003d5e0f3e00000000395cbc90" string(32) "000000003d5e0f3e00000000395cbc90"
Output for 5.4.26
string(32) "000000006b6c45240000000063ff2ae0" string(32) "000000006b6c45240000000063ff2ae0"
Output for 5.4.25
string(32) "000000006a51eb83000000005af67b4f" string(32) "000000006a51eb83000000005af67b4f"
Output for 5.4.24
string(32) "000000006f348c6f0000000066ccb25f" string(32) "000000006f348c6f0000000066ccb25f"
Output for 5.4.23
string(32) "00000000008dab1c000000006784a5e4" string(32) "00000000008dab1c000000006784a5e4"
Output for 5.4.22
string(32) "0000000059ed82c3000000002c789f14" string(32) "0000000059ed82c3000000002c789f14"
Output for 5.4.21
string(32) "000000005d5ff0ef0000000022e52615" string(32) "000000005d5ff0ef0000000022e52615"
Output for 5.4.20
string(32) "000000002784bf040000000036c31db3" string(32) "000000002784bf040000000036c31db3"
Output for 5.4.19
string(32) "000000000c47bd7600000000359099e1" string(32) "000000000c47bd7600000000359099e1"
Output for 5.4.18
string(32) "000000003f6b98490000000077463033" string(32) "000000003f6b98490000000077463033"
Output for 5.4.17
string(32) "0000000018111aed000000001ae78034" string(32) "0000000018111aed000000001ae78034"
Output for 5.4.16
string(32) "000000006906e72f00000000322e7866" string(32) "000000006906e72f00000000322e7866"
Output for 5.4.15
string(32) "000000003955a2e1000000000905854c" string(32) "000000003955a2e1000000000905854c"
Output for 5.4.14
string(32) "000000005cdb7d780000000000ec70a5" string(32) "000000005cdb7d780000000000ec70a5"
Output for 5.4.13
string(32) "0000000001d6c5a90000000043e4a621" string(32) "0000000001d6c5a90000000043e4a621"
Output for 5.4.12
string(32) "000000004503f7be0000000049b9b2d9" string(32) "000000004503f7be0000000049b9b2d9"
Output for 5.4.11
string(32) "0000000006c002b9000000004e2e92b0" string(32) "0000000006c002b9000000004e2e92b0"
Output for 5.4.10
string(32) "000000002bbea1ee000000004207277b" string(32) "000000002bbea1ee000000004207277b"
Output for 5.3.29
string(32) "000000004bbce598000000007d5184d2" string(32) "000000004bbce598000000007d5184d2"
Output for 5.3.28
string(32) "0000000068b50e4c0000000027219a2d" string(32) "0000000068b50e4c0000000027219a2d"
Output for 5.3.27
string(32) "00000000326efed5000000003b5dfcd7" string(32) "00000000326efed5000000003b5dfcd7"
Output for 5.3.26
string(32) "000000001c81d7110000000077e05d7b" string(32) "000000001c81d7110000000077e05d7b"
Output for 5.3.25
string(32) "000000000ce78984000000004115ad9f" string(32) "000000000ce78984000000004115ad9f"
Output for 5.3.24
string(32) "0000000006bfec9e000000005ddcdf01" string(32) "0000000006bfec9e000000005ddcdf01"
Output for 5.3.23
string(32) "0000000011881dcf00000000582fb679" string(32) "0000000011881dcf00000000582fb679"
Output for 5.3.22
string(32) "0000000032411561000000005235bd3f" string(32) "0000000032411561000000005235bd3f"
Output for 5.3.21
string(32) "0000000061260f160000000012efa091" string(32) "0000000061260f160000000012efa091"
Output for 5.3.20
string(32) "000000001de0a625000000004e26e786" string(32) "000000001de0a625000000004e26e786"