“A peanut sat on a railroad track. His heart was all a-flutter…”

A popular quatrain about a peanut being squashed into peanut butter has been cited in print since at least January 1922:
 
“A peanut sat on a railroad track
His heart was all a-flutter,
Along came number seventy-four
Toot-toot—‘twas peanut butter!”

 
The lines are sometimes sung for a short children’s song.
 
     
6 January 1922, Riverside (CA) Daily Press, “Flickers,” pg. 8, col. 6: 
Limerick No. 463
A peanut sat on a railroad track
His heart was all a-flutter,
Along came number seventy-four
Toot-toot—‘twas peanut butter!
 
10 January 1922, Newton (KS) Evening Kansas-Republican, pg. 5, col. 7:
A peanut sat on a railroad track,
His heart was all aflutter.
Along came number twenty-seven—
Toot! Toot!—‘Twas peanut butter.
 
Chronicling America
25 May 1922, The Argus and the Daily Union (Rock Island, IL), pg. 6, col. 3:
Aw. Nuts!
[From the Hancock County (Ill.) Journal.]
A peanut sat on the railroad track
Its heart was all a’flutter
The 3:45 came rambling past
Toot! Toot! Peanut butter.
 
18 September 1922, Chicago (IL) Daily Tribune, “A Line O’ Type Or Two,” pg. 8, col. 3:
To F. L. B.: The next time some one says—“Hello, whadda yuh know?” snap this quatrain:
 
A peanut sat on a railroad track
All a-flutter
Toot! Toot!
Peanut butter!
 
That’ll get ;em every time. See if it doesn’t.
OOFTI.
 
Google Books
October 1922, The Peanut Promoter (Suffolk, VA), pg. 34, col. 2:
SNAP THIS QUATRAIN
A peanut sat on a railraod track
All a-flutter,
Toot! Toot!
Peanut butter.
       
YouTube
A peanut sat on a railroad track
halo3hooks
Published on Nov 14, 2008
THis is just a short song,only 2 pictures!ENJOY
 
YouTube
A peanut sat on a railroad track, gross kids song
doubleup1978
Published on May 10, 2009
the kids got it stuck in my head so here yu go =)
good luck getting it out
 
A peanut sat on a railroad track,
His heart was all a-flutter,
Round the bend came number ten.
Toot! Toot! Peanut butter! Squish!
 
Twitter
Jennie B Fiechtl‏
@jenniebfiechtl
A peanut sat on a railway track, his heart was all a flutter. Around the bend came number ten…toot toot…peanut butter!
10:37 AM - 19 May 2009
   
YouTube
A Peanut Sat On a Railroad Track
David Landau - Topic
Published on Aug 9, 2015
Provided to YouTube by CDBaby
A Peanut Sat On a Railroad Track · David Landau
 
Twitter
🤣 The Dad Joke Man 😉‏
@DadJokeMan
A peanut sat on a railway track,
His heart was all a-flutter.
The 5:15 came rushing by….
Toot toot!  Peanut butter! #NationalPeanutButterDay
5:01 AM - 24 Jan 2018