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)); var_dump($lambda()); } } $x = new Thing(); $x->stuff(); $x->stuff();
based on YEVJq
Output for 7.2.0
string(32) "00000000793f8f42000000002d61fa52" NULL string(32) "00000000793f8f42000000002d61fa52" NULL
Output for 7.1.10
string(32) "00000000675d1ecd000000000448bb67" NULL string(32) "00000000675d1ecd000000000448bb67" NULL
Output for 7.1.7
string(32) "000000006a6a96d6000000004d932457" NULL string(32) "000000006a6a96d6000000004d932457" NULL
Output for 7.1.6
string(32) "0000000027145406000000001d517e69" NULL string(32) "0000000027145406000000001d517e69" NULL
Output for 7.1.5
string(32) "00000000146b2105000000003e97926e" NULL string(32) "00000000146b2105000000003e97926e" NULL
Output for 7.1.0
string(32) "000000007c288e54000000003b9929b8" NULL string(32) "000000007c288e54000000003b9929b8" NULL
Output for 7.0.20
string(32) "000000007a1f1fd7000000000ddc6101" NULL string(32) "000000007a1f1fd7000000000ddc6101" NULL
Output for 7.0.6
string(32) "0000000024de4e85000000003f56ba69" NULL string(32) "0000000024de4e85000000003f56ba69" NULL
Output for 7.0.5
string(32) "000000006dac9b210000000005513403" NULL string(32) "000000006dac9b210000000005513403" NULL
Output for 7.0.4
string(32) "000000006554cb300000000067d3abad" NULL string(32) "000000006554cb300000000067d3abad" NULL
Output for 7.0.3
string(32) "000000007072193c000000007657599e" NULL string(32) "000000007072193c000000007657599e" NULL
Output for 7.0.2
string(32) "00000000394725a00000000005f84f95" NULL string(32) "00000000394725a00000000005f84f95" NULL
Output for 7.0.1
string(32) "000000000ca26983000000006394a7a4" NULL string(32) "000000000ca26983000000006394a7a4" NULL
Output for 7.0.0
string(32) "00000000049f731d00000000675945df" NULL string(32) "00000000049f731d00000000675945df" NULL
Output for 5.6.28
string(32) "0000000069e303d40000000074bce32b" NULL string(32) "0000000069e303d40000000074bce32b" NULL
Output for 5.6.21
string(32) "0000000017ebdb750000000069cfbfdd" NULL string(32) "0000000017ebdb750000000069cfbfdd" NULL
Output for 5.6.20
string(32) "0000000066cd688900000000514d9f99" NULL string(32) "0000000066cd688900000000514d9f99" NULL
Output for 5.6.19
string(32) "000000006d7b2f27000000006be1fcd4" NULL string(32) "000000006d7b2f27000000006be1fcd4" NULL
Output for 5.6.18
string(32) "000000003cf9da2d000000007a808460" NULL string(32) "000000003cf9da2d000000007a808460" NULL
Output for 5.6.17
string(32) "000000000341ab1000000000008be11f" NULL string(32) "000000000341ab1000000000008be11f" NULL
Output for 5.6.16
string(32) "000000004732a2db00000000657e0884" NULL string(32) "000000004732a2db00000000657e0884" NULL
Output for 5.6.15
string(32) "000000004bec3d400000000024d15c8f" NULL string(32) "000000004bec3d400000000024d15c8f" NULL
Output for 5.6.14
string(32) "0000000014b4fe330000000025a37336" NULL string(32) "0000000014b4fe330000000025a37336" NULL
Output for 5.6.13
string(32) "0000000058bed74e0000000052fb2df6" NULL string(32) "0000000058bed74e0000000052fb2df6" NULL
Output for 5.6.12
string(32) "000000001cddf379000000007745b319" NULL string(32) "000000001cddf379000000007745b319" NULL
Output for 5.6.11
string(32) "000000000ae583fb000000004daae436" NULL string(32) "000000000ae583fb000000004daae436" NULL
Output for 5.6.10
string(32) "000000002fe8b89000000000425d77f8" NULL string(32) "000000002fe8b89000000000425d77f8" NULL
Output for 5.6.9
string(32) "0000000051b62f3f0000000038eeb808" NULL string(32) "0000000051b62f3f0000000038eeb808" NULL
Output for 5.6.8
string(32) "00000000500861b7000000003cff0a56" NULL string(32) "00000000500861b7000000003cff0a56" NULL
Output for 5.5.35
string(32) "0000000066aae81900000000495e1550" NULL string(32) "0000000066aae81900000000495e1550" NULL
Output for 5.5.34
string(32) "00000000263353100000000058551dd5" NULL string(32) "00000000263353100000000058551dd5" NULL
Output for 5.5.33
string(32) "000000001ba7d4190000000043985739" NULL string(32) "000000001ba7d4190000000043985739" NULL
Output for 5.5.32
string(32) "000000002acc092600000000794df45e" NULL string(32) "000000002acc092600000000794df45e" NULL
Output for 5.5.31
string(32) "000000005fa961ff0000000048c77aac" NULL string(32) "000000005fa961ff0000000048c77aac" NULL
Output for 5.5.30
string(32) "000000005053fee6000000000a947fc7" NULL string(32) "000000005053fee6000000000a947fc7" NULL
Output for 5.5.29
string(32) "000000000b410f4f000000000e5c9512" NULL string(32) "000000000b410f4f000000000e5c9512" NULL
Output for 5.5.28
string(32) "000000003a715fd6000000005b8ff3eb" NULL string(32) "000000003a715fd6000000005b8ff3eb" NULL
Output for 5.5.27
string(32) "00000000760a90a20000000063a10b1f" NULL string(32) "00000000760a90a20000000063a10b1f" NULL
Output for 5.5.26
string(32) "000000002d51f599000000003eaf1cf4" NULL string(32) "000000002d51f599000000003eaf1cf4" NULL
Output for 5.5.25
string(32) "0000000077962e380000000047377780" NULL string(32) "0000000077962e380000000047377780" NULL
Output for 5.5.24
string(32) "000000000ee9d73d0000000079943580" NULL string(32) "000000000ee9d73d0000000079943580" NULL
Output for 5.4.45
string(32) "00000000758490ef0000000065408720" NULL string(32) "00000000758490ef0000000065408720" NULL
Output for 5.4.44
string(32) "0000000060acba7c0000000049ef67e3" NULL string(32) "0000000060acba7c0000000049ef67e3" NULL
Output for 5.4.43
string(32) "000000002751230200000000423db9ff" NULL string(32) "000000002751230200000000423db9ff" NULL
Output for 5.4.42
string(32) "0000000022e00db00000000003148dc4" NULL string(32) "0000000022e00db00000000003148dc4" NULL
Output for 5.4.41
string(32) "00000000246380970000000070c67d39" NULL string(32) "00000000246380970000000070c67d39" NULL
Output for 5.4.40
string(32) "000000003490cf2e00000000645776d1" NULL string(32) "000000003490cf2e00000000645776d1" NULL
Output for 5.4.39
string(32) "000000004ae20372000000007c605b8b" NULL string(32) "000000004ae20372000000007c605b8b" NULL
Output for 5.4.38
string(32) "00000000319a721f0000000049c149b6" NULL string(32) "00000000319a721f0000000049c149b6" NULL
Output for 5.4.37
string(32) "0000000029c3f3a000000000691d5192" NULL string(32) "0000000029c3f3a000000000691d5192" NULL
Output for 5.4.36
string(32) "0000000076dfd8e5000000003aab588a" NULL string(32) "0000000076dfd8e5000000003aab588a" NULL
Output for 5.4.35
string(32) "0000000061cc896c00000000149dc95b" NULL string(32) "0000000061cc896c00000000149dc95b" NULL
Output for 5.4.34
string(32) "0000000067df79e1000000002730137c" NULL string(32) "0000000067df79e1000000002730137c" NULL
Output for 5.4.32
string(32) "000000002a1b3879000000006af9dab3" NULL string(32) "000000002a1b3879000000006af9dab3" NULL
Output for 5.4.31
string(32) "0000000070e3e5c50000000079b96da0" NULL string(32) "0000000070e3e5c50000000079b96da0" NULL
Output for 5.4.30
string(32) "0000000011203f6f00000000562d7391" NULL string(32) "0000000011203f6f00000000562d7391" NULL
Output for 5.4.29
string(32) "0000000046930f380000000068c509e8" NULL string(32) "0000000046930f380000000068c509e8" NULL
Output for 5.4.28
string(32) "000000000291df1500000000503e5c61" NULL string(32) "000000000291df1500000000503e5c61" NULL
Output for 5.4.27
string(32) "0000000073ed907e0000000010b3824b" NULL string(32) "0000000073ed907e0000000010b3824b" NULL
Output for 5.4.26
string(32) "000000002fb784980000000009f56711" NULL string(32) "000000002fb784980000000009f56711" NULL
Output for 5.4.25
string(32) "0000000056aad0850000000079b59a28" NULL string(32) "0000000056aad0850000000079b59a28" NULL
Output for 5.4.24
string(32) "000000005544fdab000000004bfd867b" NULL string(32) "000000005544fdab000000004bfd867b" NULL
Output for 5.4.23
string(32) "0000000046686d880000000026cf8020" NULL string(32) "0000000046686d880000000026cf8020" NULL
Output for 5.4.22
string(32) "000000005ebfd2f0000000000c6adf1d" NULL string(32) "000000005ebfd2f0000000000c6adf1d" NULL
Output for 5.4.21
string(32) "000000001a8e9eb10000000026f2755b" NULL string(32) "000000001a8e9eb10000000026f2755b" NULL
Output for 5.4.20
string(32) "000000006145a6b4000000006660f651" NULL string(32) "000000006145a6b4000000006660f651" NULL
Output for 5.4.19
string(32) "000000007baf52e2000000002420e48f" NULL string(32) "000000007baf52e2000000002420e48f" NULL
Output for 5.4.18
string(32) "00000000086b40d0000000005b90f8e7" NULL string(32) "00000000086b40d0000000005b90f8e7" NULL
Output for 5.4.17
string(32) "000000007c2c85f7000000000c464913" NULL string(32) "000000007c2c85f7000000000c464913" NULL
Output for 5.4.16
string(32) "00000000756f8f8300000000193a230b" NULL string(32) "00000000756f8f8300000000193a230b" NULL
Output for 5.4.15
string(32) "000000004681f8670000000057154e3c" NULL string(32) "000000004681f8670000000057154e3c" NULL
Output for 5.4.14
string(32) "0000000066ad3db200000000523a6b88" NULL string(32) "0000000066ad3db200000000523a6b88" NULL
Output for 5.4.13
string(32) "0000000066ec376f000000007c336216" NULL string(32) "0000000066ec376f000000007c336216" NULL
Output for 5.4.12
string(32) "000000000d3971dc0000000016cc6642" NULL string(32) "000000000d3971dc0000000016cc6642" NULL
Output for 5.4.11
string(32) "000000007e2a1bff000000007e5bd92d" NULL string(32) "000000007e2a1bff000000007e5bd92d" NULL
Output for 5.4.10
string(32) "000000006aabdffb00000000372ccea1" NULL string(32) "000000006aabdffb00000000372ccea1" NULL
Output for 5.3.29
string(32) "000000003a0167c40000000054dc7484" NULL string(32) "000000003a0167c40000000054dc7484" NULL
Output for 5.3.28
string(32) "000000001db6722b0000000075dd4cd5" NULL string(32) "000000001db6722b0000000075dd4cd5" NULL
Output for 5.3.27
string(32) "00000000200e1f04000000007f736c09" NULL string(32) "00000000200e1f04000000007f736c09" NULL
Output for 5.3.26
string(32) "000000005ea80cf7000000001cee02cc" NULL string(32) "000000005ea80cf7000000001cee02cc" NULL
Output for 5.3.25
string(32) "0000000074a0e51e0000000026cdc6d3" NULL string(32) "0000000074a0e51e0000000026cdc6d3" NULL
Output for 5.3.24
string(32) "0000000076fb8a1c0000000077162569" NULL string(32) "0000000076fb8a1c0000000077162569" NULL
Output for 5.3.23
string(32) "0000000055abd4dd000000001e6bc8f2" NULL string(32) "0000000055abd4dd000000001e6bc8f2" NULL
Output for 5.3.22
string(32) "0000000021328670000000004981bf9b" NULL string(32) "0000000021328670000000004981bf9b" NULL
Output for 5.3.21
string(32) "000000004199a5ed000000001026608f" NULL string(32) "000000004199a5ed000000001026608f" NULL
Output for 5.3.20
string(32) "00000000554e3863000000007d74875e" NULL string(32) "00000000554e3863000000007d74875e" NULL